Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.2.0-BETA1
-
Fix Version/s: 1.2.0-BETA3
-
Component/s: Native SQL
-
Labels:None
-
Environment:All
Description
File http://trac.doctrine-project.org/browser/branches/1.2/lib/Doctrine/DataDict/Sqlite.php
Contains undefined constant Doctrine_Core::ATTR_DEFAULT_TEXTFLD_LENGTH which breaks generation of sql for sqlite
Proposed fix: use $this->conn->options['default_text_field_length'] ?
I've tested it again and now it seems to be broken in that same line.
Now in 76 line of Doctrine_DataDict_Sqlite I need to use:
return $fixed ? ($length ? 'CHAR('.$length.')' : 'CHAR('.$this->conn->varchar_max_length.')')
Which I found in Mysql datadict, even though Mssql uses:
return $fixed ? ($length ? 'CHAR('.$length.')' : 'CHAR('.$this->conn->options['default_text_field_length'].')')
Which won't work because there is no options in conn.
Using rev6721