From 7fa1200b5e589a47884aa4d62630ce9099fccee1 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 30 Jan 2007 11:36:13 +0000 Subject: Add basic Scaffold view for Active Record --- framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php') 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; -- cgit v1.2.3