mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing trigger_warning() that causes tests to fail in Sqlite, as
it does not assign lengths for integer columns.
This commit is contained in:
parent
2ceea79862
commit
4172eac7c6
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue