Bug in tzconnection.executedirect
Posted: 24.02.2008, 19:55
Hi All,
I use FreePascal with IDE MSEgui. I wrote this syntax to create table in MySQL 4.1 :
TZConnection1.executedirect('CREATE TABLE rentproduct (code varchar(50) NOT NULL default '', name varchar(100) default '', description varchar(100) default '', imageid longblob, PRIMARY KEY (code))');
the result table rentproduct is created but column 'name' and 'description' not created. I doubt that 'name' can't be used to be field name (but in MySQL Administrator is OK) than I change 'name' to 'name1'
TZConnection1.executedirect('CREATE TABLE rentproduct (code varchar(50) NOT NULL default '', name1 varchar(100) default '', description varchar(100) default '', imageid longblob, PRIMARY KEY (code))');
But with this way the result is 'name1 varchar(100) default ' is to be default value for field 'code'.
Is this way result same error with other compiler (Delphi, etc).
regards
wahono
I use FreePascal with IDE MSEgui. I wrote this syntax to create table in MySQL 4.1 :
TZConnection1.executedirect('CREATE TABLE rentproduct (code varchar(50) NOT NULL default '', name varchar(100) default '', description varchar(100) default '', imageid longblob, PRIMARY KEY (code))');
the result table rentproduct is created but column 'name' and 'description' not created. I doubt that 'name' can't be used to be field name (but in MySQL Administrator is OK) than I change 'name' to 'name1'
TZConnection1.executedirect('CREATE TABLE rentproduct (code varchar(50) NOT NULL default '', name1 varchar(100) default '', description varchar(100) default '', imageid longblob, PRIMARY KEY (code))');
But with this way the result is 'name1 varchar(100) default ' is to be default value for field 'code'.
Is this way result same error with other compiler (Delphi, etc).
regards
wahono