Got error when doing doctrine:insert-sql

Discussion relating to version 1.3.x and 1.4.x

Got error when doing doctrine:insert-sql

Postby davidqi » Mon Oct 26, 2009 7:05 pm

I got an error when doing doctrine:insert-sql, same story using doctrine:build-all.

The error message is:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 INT, v TINYINT, h TINYINT, PRIMARY KEY(db_name, table_name)) ENGINE = INNODB' at line 1. Failing Query: CREATE TABLE pma_designer_coords (db_name VARCHAR(64), table_name VARCHAR(64), x INT, 1 INT, v TINYINT, h TINYINT, PRIMARY KEY(db_name, table_name)) ENGINE = INNODB

The query to create pma_designer_coords table is built in data/sql/schema.sql by symfony1.3 when runing doctrine:build-sql.

I can not figure out what's wrong. Please help.

MySql Server version is 5.1.3.

Thx.
Last edited by davidqi on Mon Oct 26, 2009 7:29 pm, edited 1 time in total.
davidqi
Junior Member
 
Posts: 1
Joined: Mon Oct 26, 2009 6:36 pm

Re: Got error when doing doctrine:insert-sql

Postby gil_ » Fri Nov 06, 2009 11:51 pm

davidqi wrote: I got an error when doing doctrine:insert-sql, same story using doctrine:build-all.

The error message is:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 INT, v TINYINT, h TINYINT, PRIMARY KEY(db_name, table_name)) ENGINE = INNODB' at line 1. Failing Query: CREATE TABLE pma_designer_coords (db_name VARCHAR(64), table_name VARCHAR(64), x INT, 1 INT, v TINYINT, h TINYINT, PRIMARY KEY(db_name, table_name)) ENGINE = INNODB

The query to create pma_designer_coords table is built in data/sql/schema.sql by symfony1.3 when runing doctrine:build-sql.

I can not figure out what's wrong. Please help.

MySql Server version is 5.1.3.

Thx.


"1 INT" is strange. And the error is the same as if you were using "1" instead of "l".
gil_
Junior Member
 
Posts: 14
Joined: Sat Jun 13, 2009 2:46 pm


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 7 guests