Changeset 1664

Show
Ignore:
Timestamp:
01/30/2007 05:36:13 AM (23 months ago)
Author:
wei
Message:

Add basic Scaffold view for Active Record

Location:
trunk
Files:
22 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/demos/quickstart/protected/controls/TopicList.tpl

    r1650 r1664  
    7373    <li><a href="?page=Database.DAO">Data Access Objects</a></li> 
    7474    <li><a href="?page=Database.ActiveRecord">Active Record</a></li> 
     75    <li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li> 
    7576    <li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li> 
    7677</ul> 
  • trunk/framework/Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php

    r1662 r1664  
    147147 
    148148                // A specific constant in the 7.0 source, the length is offset by 4. 
    149                 $length = $col['atttypmod'] > 0 ? $col['atttypmod'] - 4 : -1; 
     149                $length = $col['atttypmod'] > 0 ? $col['atttypmod'] - 4 : null; 
    150150                $notNull = $col['attnotnull']; 
    151151                $serial = $col['attisserial'] ? $schema.'.'.$this->getSerialName($col['adsrc']) : null;