Removing trigger_warning() that causes tests to fail in Sqlite, as

it does not assign lengths for integer columns.
This commit is contained in:
mark_story 2011-09-03 18:59:23 +01:00
parent 2ceea79862
commit 4172eac7c6

View file

@ -2694,11 +2694,10 @@ class DboSource extends DataSource {
* Gets the length of a database-native column description, or null if no length
*
* @param string $real Real database-layer column type (i.e. "varchar(255)")
* @return mixed An integer or string representing the length of the column
* @return mixed An integer or string representing the length of the column, or null for unknown length.
*/
public function length($real) {
if (!preg_match_all('/([\w\s]+)(?:\((\d+)(?:,(\d+))?\))?(\sunsigned)?(\szerofill)?/', $real, $result)) {
trigger_error(__d('cake_dev', "FIXME: Can't parse field: " . $real), E_USER_WARNING);
$col = str_replace(array(')', 'unsigned'), '', $real);
$limit = null;