mirror of
https://github.com/dg/dibi.git
synced 2025-08-03 20:57:36 +02:00
Mysql & Mysqli drivers: fixed bug in detection unsigned columns
This commit is contained in:
@@ -466,7 +466,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver, IDibiReflector
|
||||
'table' => $table,
|
||||
'nativetype' => strtoupper($type[0]),
|
||||
'size' => isset($type[1]) ? (int) $type[1] : NULL,
|
||||
'unsigned' => (bool) strstr('unsigned', $row['Type']),
|
||||
'unsigned' => (bool) strstr($row['Type'], 'unsigned'),
|
||||
'nullable' => $row['Null'] === 'YES',
|
||||
'default' => $row['Default'],
|
||||
'autoincrement' => $row['Extra'] === 'auto_increment',
|
||||
|
@@ -470,7 +470,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver, IDibiReflector
|
||||
'table' => $table,
|
||||
'nativetype' => strtoupper($type[0]),
|
||||
'size' => isset($type[1]) ? (int) $type[1] : NULL,
|
||||
'unsigned' => (bool) strstr('unsigned', $row['Type']),
|
||||
'unsigned' => (bool) strstr($row['Type'], 'unsigned'),
|
||||
'nullable' => $row['Null'] === 'YES',
|
||||
'default' => $row['Default'],
|
||||
'autoincrement' => $row['Extra'] === 'auto_increment',
|
||||
|
Reference in New Issue
Block a user