Browse Source

Merge pull request #785 from Oldiesmann/release-2.1

! Fix another issue caused by Postgres being case-sensitive
Michael Eshom 10 years ago
parent
commit
00a81f9723
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/DbSearch-postgresql.php

+ 4 - 0
Sources/DbSearch-postgresql.php

@@ -74,10 +74,14 @@ function smf_db_search_query($identifier, $db_string, $db_values = array(), $con
 			'~IF\sEXISTS~i' => '',
 		),
 		'insert_into_log_messages_fulltext' => array(
+			'~LIKE~i' => 'iLIKE',
+			'~NOT\sLIKE~i' => '~NOT iLIKE',
 			'~NOT\sRLIKE~i' => '!~*',
 			'~RLIKE~i' => '~*',
 		),
 		'insert_log_search_results_subject' => array(
+			'~LIKE~i' => 'iLIKE',
+			'~NOT\sLIKE~i' => 'NOT iLIKE',
 			'~NOT\sRLIKE~i' => '!~*',
 			'~RLIKE~i' => '~*',
 		),