Changeset 255 for trunk/trax/vendor

Show
Ignore:
Timestamp:
08/28/06 23:30:49 (6 years ago)
Author:
john
Message:

fixing quoted_attributes()

Files:
1 modified

Legend:

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

    r254 r255  
    21552155            $value = $this->check_datetime($key, $value); 
    21562156            $column = $this->column_for_attribute($key); 
    2157             $type = $this->attribute_is_string($key, $column['mdb2type']) ? "Text" : "Integer"; 
     2157            $type = $this->attribute_is_string($key, $column) ? "Text" : "Integer"; 
    21582158            $value = self::$db->quote($value, $type); 
    21592159            if($value == 'NULL' && $column['notnull']) { 
     
    24712471    function attribute_is_string($attribute, $column = null) { 
    24722472        $column = is_null($column) ? $this->column_for_attribute($attribute) : $column; 
     2473        error_log($attribute . " mdb2type: " . strtolower($column['mdb2type'])); 
    24732474        switch(strtolower($column['mdb2type'])) { 
    24742475            case 'text':