diff options
author | wei <> | 2007-01-30 11:36:13 +0000 |
---|---|---|
committer | wei <> | 2007-01-30 11:36:13 +0000 |
commit | 7fa1200b5e589a47884aa4d62630ce9099fccee1 (patch) | |
tree | 739e307440b4fccf3125ab11719dc09fccefed41 /framework/Data/ActiveRecord/Vendor | |
parent | fcb45e6479d4c13084c8033e543e0c1fdeead8e5 (diff) |
Add basic Scaffold view for Active Record
Diffstat (limited to 'framework/Data/ActiveRecord/Vendor')
-rw-r--r-- | framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php index 6f787942..2f7202cf 100644 --- a/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php +++ b/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php @@ -146,7 +146,7 @@ EOD; $type = $col['type'];
// A specific constant in the 7.0 source, the length is offset by 4.
- $length = $col['atttypmod'] > 0 ? $col['atttypmod'] - 4 : -1;
+ $length = $col['atttypmod'] > 0 ? $col['atttypmod'] - 4 : null;
$notNull = $col['attnotnull'];
$serial = $col['attisserial'] ? $schema.'.'.$this->getSerialName($col['adsrc']) : null;
$default = $serial === null && $col['atthasdef'] ? $col['adsrc'] : null;
|