1
0
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:
PetrP
2010-06-30 17:48:22 +08:00
committed by David Grudl
parent 8082489143
commit e8de6f21c9
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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',