Some more uses of $CFG->dbfamily. MDL-7061

This commit is contained in:
stronk7
2007-01-13 00:32:19 +00:00
parent bb48a53735
commit a4bad45c2c
6 changed files with 20 additions and 19 deletions
+2 -2
View File
@@ -135,7 +135,7 @@
case 'search':
/// Some differences in syntax for PostgreSQL
if ($CFG->dbtype == "postgres7") {
if ($CFG->dbfamily == "postgres") {
$REGEXP = "~*";
$NOTREGEXP = "!~*";
} else {
@@ -163,7 +163,7 @@
/// Under Oracle and MSSQL, trim the + and - operators and perform
/// simpler LIKE search
if ($CFG->dbtype == 'oci8po' || $CFG->dbtype == 'mssql' || $CFG->dbtype == 'mssql_n' || $CFG->dbtype == 'odbc_mssql') {
if ($CFG->dbfamily == 'oracle' || $CFG->dbfamily == 'mssql') {
$searchterm = trim($searchterm, '+-');
}