Changeset 252 for trunk/trax/vendor/trax

Show
Ignore:
Timestamp:
08/28/06 21:26:46 (6 years ago)
Author:
john
Message:

fixing quoted_attributes() in AR

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/active_record.php

    r251 r252  
    24662466    function attribute_is_string($attribute) { 
    24672467        $column_type = $this->column_type($attribute); 
    2468         switch($column_type) { 
    2469             case 'string': 
    2470             case 'varchar': 
    2471             case 'varchar2': 
    2472             case 'text': 
    2473             case 'blob': 
    2474             case 'clob': 
    2475             case 'date': 
    2476             case 'time': 
    2477             case 'datetime': 
    2478             case 'timestamp': 
    2479                 return true; 
     2468        if(stristr($column_type, 'string') || 
     2469           stristr($column_type, 'char') || 
     2470           stristr($column_type, 'blob') ||  
     2471           stristr($column_type, 'text') ||  
     2472           stristr($column_type, 'time') ||  
     2473           stristr($column_type, 'date') || 
     2474           stristr($column_type, 'string') || 
     2475           stristr($column_type, 'clob') || 
     2476           stristr($column_type, 'year') || 
     2477           stristr($column_type, 'enum')) { 
     2478             
     2479            return true; 
    24802480        } 
    24812481        return false;