Skip to content

ibase_prepare fails to find table with SQL that has double quotes on table identifiers #35

@betrixed

Description

@betrixed

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions