summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 54aef3f3..109ae9a6 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -520,7 +520,7 @@ abstract class TActiveRecord extends TComponent
$search = implode('|', $meta->getColumnNames());
$regexp = '/('.$search.')(and|_and_|or|_or_)?/i';
$matches = array();
- if(!preg_match_all($regexp, $condition, $matches,PREG_SET_ORDER))
+ if(!preg_match_all($regexp, strtolower($condition), $matches,PREG_SET_ORDER))
{
throw new TActiveRecordException('ar_mismatch_column_names',
$method, implode(', ', $meta->getColumnNames()), $meta->getTableName());