Преглед на файлове

Made the previous fix case insenstive so Select and select queries still get the non search_path change boost

Lacey Sanderson преди 12 години
родител
ревизия
3862b24240
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tripal_core/api/tripal_core.api.inc

+ 1 - 1
tripal_core/api/tripal_core.api.inc

@@ -2261,7 +2261,7 @@ function chado_query($sql) {
   //print "$sql\n";
 
   // If the query is not a select then we still need to change the search_path
-  if (!preg_match('/^SELECT/',$sql)) {
+  if (!preg_match('/^SELECT/i',$sql)) {
     $change_path = TRUE;
   }