Skip to content

Commit 4172eac

Browse files
committed
Removing trigger_warning() that causes tests to fail in Sqlite, as
it does not assign lengths for integer columns.
1 parent 2ceea79 commit 4172eac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Cake/Model/Datasource/DboSource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,11 +2694,10 @@ public function hasAny($Model, $sql) {
26942694
* Gets the length of a database-native column description, or null if no length
26952695
*
26962696
* @param string $real Real database-layer column type (i.e. "varchar(255)")
2697-
* @return mixed An integer or string representing the length of the column
2697+
* @return mixed An integer or string representing the length of the column, or null for unknown length.
26982698
*/
26992699
public function length($real) {
27002700
if (!preg_match_all('/([\w\s]+)(?:\((\d+)(?:,(\d+))?\))?(\sunsigned)?(\szerofill)?/', $real, $result)) {
2701-
trigger_error(__d('cake_dev', "FIXME: Can't parse field: " . $real), E_USER_WARNING);
27022701
$col = str_replace(array(')', 'unsigned'), '', $real);
27032702
$limit = null;
27042703

0 commit comments

Comments
 (0)