Page 1 of 1

Corrected names of tables

Posted: Fri 13 Jul 2007 12:44
by flashLAV
Hi
I try make test table with name ONLY from digits:

(info from DBMonitor)
"SQL Execute: CREATE TABLE `123` (`ID` int(11) NOT NULL auto_increment,...
Complete
SQL Execute: SELECT * FROM `123`
Complete
"

But, when I try insert data to this table - error

"SQL Execute: INSERT INTO 123
(NAME)
VALUES
(?)
:NAME(FixedChar[5],IN)='Peter'
Error
"
After many tests I understood, that the name of the table should not consist only digits.
Image

This restriction MySQL or components?

Posted: Mon 23 Jul 2007 07:43
by Antaeus
You should set the QuoteNames option of you MyQuery/MyTable to True.

Posted: Mon 23 Jul 2007 15:19
by flashLAV
Antaeus wrote:You should set the QuoteNames option of you MyQuery/MyTable to True.
Thanks, now all is normal.