-
Notifications
You must be signed in to change notification settings - Fork 17
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
ibase_prepare fails to find table with SQL that has double quotes on table identifiers #35
Comments
Can you try this: Firebird internally use uppercases. I'm sure there is no table "test" but "TEST". Please check and give me feedback. |
That is only true for unquoted identifiers. If the table was created as |
Well, didn't know that. I will check that. |
I confirm that bug. |
Are you sure this is a bug? Look at isql behavior: SQL> select count(*) from COUNTRY;
===================== SQL> select count(*) from "COUNTRY";
===================== SQL> select count(*) from "country"; |
@AlexPeshkoff So this is really not a bug as Alex said. If you use quotes, then you still have to use quotes in the query. You also have to match the case you created the table. |
I get the feeling there is now some confusion about what the actual problem is. How I read the OP, is that the query |
Environment arm64 linux debian 11 (testing) environment. Interbase 3.0 installed, because 4.0 wasn't available until recently.
the php-firebird driver function ibase_prepare , rejects the SQL statement
INSERT INTO "test" . . .
The table name "test" exists, but the error returned is that table test cannot be found.
--- fbird_prepare(): Dynamic SQL Error SQL error code = -204 Table unknown test At line 1, column 13 ----
"test" is a double - quoted identifier.
But in the same PHP and database environment, using the pdo_firebird driver access, with the same connect string,
the prepare call using same SQL is successful.
I note that both drivers seem to use client libraries and similar api to access. eg .. isc_dsql_sql_info
Maybe this is something to do with different automatic dialect allocation on connection.
The text was updated successfully, but these errors were encountered: