Changeset 255 for trunk/trax/vendor
- Timestamp:
- 08/28/06 23:30:49 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/active_record.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/active_record.php
r254 r255 2155 2155 $value = $this->check_datetime($key, $value); 2156 2156 $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"; 2158 2158 $value = self::$db->quote($value, $type); 2159 2159 if($value == 'NULL' && $column['notnull']) { … … 2471 2471 function attribute_is_string($attribute, $column = null) { 2472 2472 $column = is_null($column) ? $this->column_for_attribute($attribute) : $column; 2473 error_log($attribute . " mdb2type: " . strtolower($column['mdb2type'])); 2473 2474 switch(strtolower($column['mdb2type'])) { 2474 2475 case 'text':
