Skip to content

Commit

Permalink
Mysql & Mysqli drivers: fixed bug in detection unsigned columns
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrP committed Jun 30, 2010
1 parent 5d9c165 commit 9df5ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dibi/drivers/mysql.php
Expand Up @@ -466,7 +466,7 @@ public function getColumns($table)
'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',
Expand Down
2 changes: 1 addition & 1 deletion dibi/drivers/mysqli.php
Expand Up @@ -469,7 +469,7 @@ public function getColumns($table)
'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',
Expand Down

0 comments on commit 9df5ec9

Please sign in to comment.