[Solar-talk] Fetch Error
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Feb 13 07:47:44 CST 2008
On Feb 13, 2008 11:27 AM, Kilbride, James P.:
> What is ERR_IDENTIFIER_CHARS mean?
It seems that Solar_Sql_Adapter disallows uppercase in table/column
names. This is around line 1960 - method _checkIdentifier():
// only a-z, 0-9, and _ are allowed in words.
// must start with a letter, not a number or underscore.
$regex = '/^[a-z][a-z0-9_]*$/';
if (! preg_match($regex, $name)) {
You can change the regex to allow uppercase:
$regex = '/^[a-zA-Z][a-zA-Z0-9_]*$/';
But I'd recommend that you stick with *all* lowercase for your names.
-- rodrigo
More information about the Solar-talk
mailing list