1.4 not aware of the MYSQL version ?

Discussion relating to version 1.3.x and 1.4.x

1.4 not aware of the MYSQL version ?

Postby Otyugh2 » Tue May 01, 2012 9:24 pm

Hey,
when i tryed to install things on symfony, i get some :
(lot of generated things)
)Type=InnoDB
[propel-sql-exec] 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 'Type=InnoDB' at line 15

and learning my MYSQL 5.5 i founded that :
Since version 5.5, MySQL changed the syntax of TYPE=INNODB to ENGINE=INNODB in DDL statements.
Otyugh2
Junior Member
 
Posts: 3
Joined: Fri Apr 27, 2012 3:44 pm

Re: 1.4 not aware of the MYSQL version ?

Postby Otyugh » Tue May 22, 2012 10:12 pm

I founded the fix.

symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder /sql/mysql/MysqlDDLBuilder.php

Line 156, change it as follows:- $script .= “Engine=$mysqlTableType”;

Or go to SF version 1.5...

The problem is the version of Mysql that made change the declaration since the 5.5 i guess.
Otyugh
Junior Member
 
Posts: 3
Joined: Wed May 16, 2012 4:33 pm


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 6 guests