- Timestamp:
- 03/03/10 13:53:38 (5 months ago)
- Files:
-
- fORMDatabase.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fORMDatabase.php
r740 r754 Hide Line Numbers 3 3 * Holds a single instance of the fDatabase class and provides database manipulation functionality for ORM code 4 4 * 5 * @copyright Copyright (c) 2007-20 09Will Bond, others5 * @copyright Copyright (c) 2007-2010 Will Bond, others 6 6 * @author Will Bond [wb] <will@flourishlib.com> 7 7 * @author Craig Ruksznis, iMarc LLC [cr-imarc] <craigruk@imarc.net> … … 11 11 * @link http://flourishlib.com/fORMDatabase 12 12 * 13 * @version 1.0.0b20 13 * @version 1.0.0b21 14 * @changes 1.0.0b21 Changed ::injectFromAndGroupByClauses() to be able to handle table aliases that contain other aliases inside of them [wb, 2010-03-03] 14 15 * @changes 1.0.0b20 Fixed a bug where joining to a table two separate ways could cause table alias issues and incorrect SQL to be generated [wb, 2009-12-16] 15 16 * @changes 1.0.0b19 Added the ability to compare columns with the `=:`, `!:`, `<:`, `<=:`, `>:` and `>=:` operators [wb, 2009-12-08] … … 1073 1074 1074 1075 foreach ($table_map as $arrow_table => $alias) { 1075 $temp_sql = str_replace($arrow_table, $alias, $temp_sql);1076 $temp_sql = preg_replace('#(?<![\w"])' . preg_quote($arrow_table, '#') . '(?!=[\w"])#', $alias, $temp_sql); 1076 1077 } 1077 1078 … … 1286 1287 1287 1288 /** 1288 * Copyright (c) 2007-20 09Will Bond <will@flourishlib.com>, others1289 * Copyright (c) 2007-2010 Will Bond <will@flourishlib.com>, others 1289 1290 * 1290 1291 * Permission is hereby granted, free of charge, to any person obtaining a copy
