note 94537 deleted from function.ibase-fetch-assoc by danbrown
| From: | danbrown@php.net | Date: | Wed, 11 Nov 2009 00:29:01 +0000 |
| Subject: | note 94537 deleted from function.ibase-fetch-assoc by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162732@lists.php.net to get a copy of this message | ||
Note Submitter: teson
----
Re:karasek
Lowercase-fieldnames:
firebird has three "modes" (dialects), and
dialect1/2 is very old. Dialect 3 uses
double-quotes to identify fieldnames,
select "Id","Name" from "tbl_MyTable".
If double-quotes are not passed, as in:
select Id,Name from tbl_MyTable,
firebird will "fall back" to dialect1 and read it as
select ID,NAME from TBL_MYTABLE
and will fail to retrive lower case fields.
In short;
* use dialect3.
* Use double-quotes in sql-statements OR
* Define all tables and fields as upper case.