1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

Column size is string or NULL

Issue #74
This commit is contained in:
Daniel Kouba
2012-12-11 15:09:21 +01:00
parent 8cda1401ff
commit 188acf1f76

View File

@@ -78,7 +78,7 @@ class DibiMssql2005Reflector extends DibiObject implements IDibiReflector
'name' => $row['COLUMN_NAME'],
'table' => $table,
'nativetype' => strtoupper($row['DATA_TYPE']),
'size' => $row['CHARACTER_MAXIMUM_LENGTH'],
'size' => $row['CHARACTER_MAXIMUM_LENGTH'] ? $row['CHARACTER_MAXIMUM_LENGTH'] : NULL,
'unsigned' => TRUE,
'nullable' => $row['IS_NULLABLE'] === 'YES',
'default' => $row['COLUMN_DEFAULT'],