CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

Ibase driver - protect_identifiers ?

Open churavka opened this issue 14 years ago • 1 comments

Error Number: -204 Dynamic SQL Error SQL error code = -204 Table unknown firms At line 2, column 1

SELECT TRIM(f.id) as extra_id, "f"."code", "f"."name" FROM "firms" "f" JOIN "addresses" "a" ON "a"."id" = "f"."residenceaddress_id" WHERE "firm_id" IS NULL AND "f"."hidden" = 'N'

churavka avatar Nov 06 '12 20:11 churavka

Your tables are defined in uppercase, and you are querying on lowercase.

When I worked on that driver I wasn't sure how best to handle that.

Eg.

If you define a table as table_name, it will be created as TABLE_NAME. If you define a table as "table_name", it will be created as table_name.

Confusing, and stupid, but that's how the database works.

timw4mail avatar Nov 06 '12 20:11 timw4mail