Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial error message issue when dropping table (more?) with quotes or zero-length identifiers [CORE1858] #2288

Open
firebird-automations opened this issue Apr 23, 2008 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Bill Oliver (verbguy)

Tested against 2.0.3, but presume this is present in all versions.

Trivial issue noticed by our tester, and confirmed by Claudio.

Note that trying to create a table with a zero-length identifier fails with descriptive error.

SQL> create table "" (i integer);
Statement failed, SQLCODE = -607
unsuccessful metadata update
-Zero length identifiers are not allowed

Dropping table with zero-length identifier, gives an error message that doesn't look quite right.

SQL> drop table "" ;
Statement failed, SQLCODE = -607
Table does not exist
SQL>

Claudio says...

The problem is that error messages give you the name of the table unquoted and unescaped:

SQL> drop table "oli vier";
Statement failed, SQLCODE = 42S02
Dynamic SQL Error
-SQL error code = -607
-Invalid command
-Table oli vier does not exist
SQL> drop table "o""malley";
Statement failed, SQLCODE = 42S02
Dynamic SQL Error
-SQL error code = -607
-Invalid command
-Table o"malley does not exist

We would need a special case for blank, not sure how many places have to be changed. You guessed right that this is 99% irrelevant for us, compared to other pending tasks we have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant