Issue Details (XML | Word | Printable)

Key: CORE-3112
Type: Bug Bug
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Dimitry Sibiryakov
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Firebird Core

Error codes should be consistent for different operations

Created: 20/Aug/10 09:41 AM   Updated: 20/Aug/10 11:27 AM
Component/s: Engine
Affects Version/s: None
Fix Version/s: None

Environment: All environments

 Description  « Hide
Attempt to SELECT from non-existing table produces error code 335544580, but attempt to drop non-existing table produces not documented code 336397206.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Adriano dos Santos Fernandes added a comment - 20/Aug/10 10:38 AM
1) Hum, undocumented? const ISC_STATUS isc_dsql_table_not_found = 336397206L;
2) Completelly different errors should produce the same code?
3) Do you missed proposed and implemented in HEAD new DDL error codes?

Dimitry Sibiryakov added a comment - 20/Aug/10 10:46 AM
1) Sources are not a documentation.
2) They are not different, they are the same - "table (or other object) does not exists".
3) Yes, I've missed them. Point me to their descriptions, please.

Adriano dos Santos Fernandes added a comment - 20/Aug/10 10:56 AM
Read thread "DDL exceptions", but it's not very related to this ticket, sorry.

Ok, you're correct about 2. And there is much more duplicate codes from DYN and DSQL subsystems.

Dimitry Sibiryakov added a comment - 20/Aug/10 11:27 AM
And these duplicate codes is exactly the bug which this ticket is about.