- Timestamp:
- 11/13/09 09:08:21 (3 weeks ago)
- Files:
-
- fActiveRecord.php (modified) (2 diffs)
- fORMOrdering.php (modified) (3 diffs)
- fSchema.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fActiveRecord.php
r728 r730 Hide Line Numbers 16 16 * @link http://flourishlib.com/fActiveRecord 17 17 * 18 * @version 1.0.0b49 18 * @version 1.0.0b50 19 * @changes 1.0.0b50 Fixed a bug with trying to load by a multi-column primary key where one of the columns was not specified [wb, 2009-11-13] 19 20 * @changes 1.0.0b49 Fixed a bug affecting where conditions with columns that are not null but have a default value [wb, 2009-11-03] 20 21 * @changes 1.0.0b48 Updated code for the new fORMDatabase and fORMSchema APIs [wb, 2009-10-28] … … 1052 1053 } 1053 1054 1054 $wrong_keys = is_array($key) && array_diff(array_keys($key), $pk_columns);1055 $wrong_keys = is_array($key) && (count($key) != count($pk_columns) || array_diff(array_keys($key), $pk_columns)); 1055 1056 $wrong_type = !is_array($key) && (sizeof($pk_columns) != 1 || !is_scalar($key)); 1056 1057 fORMOrdering.php
r728 r730 Hide Line Numbers 11 11 * @link http://flourishlib.com/fORMOrdering 12 12 * 13 * @version 1.0.0b14 13 * @version 1.0.0b15 14 * @changes 1.0.0b15 Fixed a bug with ordering columns that are part of a multi-column unique constraint [wb, 2009-11-13] 14 15 * @changes 1.0.0b14 Fixed a bug affecting where conditions with columns that are not null but have a default value [wb, 2009-11-03] 15 16 * @changes 1.0.0b13 Updated code for the new fORMDatabase and fORMSchema APIs [wb, 2009-10-28] … … 157 158 } 158 159 159 $params[0] .= join(' ,', $conditions);160 $params[0] .= join(' AND ', $conditions); 160 161 161 162 return $params; … … 192 193 } 193 194 194 $params[0] .= join(' ,', $conditions);195 $params[0] .= join(' AND ', $conditions); 195 196 196 197 return $params; fSchema.php
r726 r730 Hide Line Numbers 10 10 * @link http://flourishlib.com/fSchema 11 11 * 12 * @version 1.0.0b27 12 * @version 1.0.0b28 13 * @changes 1.0.0b28 Fixed a bug with detecting some multi-column unique constraints in SQL Server databases [wb, 2009-11-13] 13 14 * @changes 1.0.0b27 Added a parameter to ::enableCaching() to provide a key token that will allow cached values to be shared between multiple databases with the same schema [wb, 2009-10-28] 14 15 * @changes 1.0.0b26 Added the placeholder element to the output of ::getColumnInfo(), added support for PostgreSQL, MSSQL and Oracle "schemas", added support for parsing quoted SQLite identifiers [wb, 2009-10-22] … … 563 564 564 565 if (isset($temp)) { 565 if ($last_type == 'foreign' ) {566 if ($last_type == 'foreign' || $last_type == 'unique') { 566 567 if (!isset($keys[$last_table][$last_type])) { 567 568 $keys[$last_table][$last_type] = array();
