diff options
Diffstat (limited to 'framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php')
-rw-r--r-- | framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php index 0ccc05ae..3920ac39 100644 --- a/framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TIbmMetaDataInspector.php @@ -78,8 +78,8 @@ class TIbmMetaDataInspector extends TDbMetaDataInspector $name = strtolower($col['COLNAME']);
$type = $col['TYPENAME'];
$length = $col['LENGTH'];
- $notNull = $col['NULLS']==='N';
- $autoIncrement=$col['IDENTITY']==='N';
+ $notNull = $col['NULLS']==='N'?1:0;
+ $autoIncrement=$col['IDENTITY']==='Y'?1:0;
$default = $col['DEFAULT'];
$primaryKey = $col['KEYSEQ']?1:0;
return new TIbmColumnMetaData($name,$type,$length,$notNull,$autoIncrement,$default,$primaryKey);
|