equal
deleted
inserted
replaced
48 $db->setFetchMode(MDB2_FETCHMODE_ASSOC); |
48 $db->setFetchMode(MDB2_FETCHMODE_ASSOC); |
49 |
49 |
50 /* erase info */ |
50 /* erase info */ |
51 $mysql_pass = $dsn = ''; |
51 $mysql_pass = $dsn = ''; |
52 |
52 |
|
53 // Add support for regular expressions in both MySQL and PostgreSQL |
|
54 if ( $dbdsntype == "mysql" ) |
|
55 { |
|
56 $sql_regexp = "REGEXP"; |
|
57 } |
|
58 elseif ( $dbdsntype == "pgsql" ) |
|
59 { |
|
60 $sql_regexp = "~"; |
|
61 } |
|
62 else |
|
63 { |
|
64 error(_('Unknown database type in inc/config.inc.php.')); |
|
65 }; |
53 |
66 |
54 ?> |
67 ?> |