CodeIgniter
CodeIgniter copied to clipboard
Ibase driver - protect_identifiers ?
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'
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.