inc/database.inc.php
changeset 55 a885f557678f
parent 47 ae140472d97c
child 67 2f8c29fc5e2e
equal deleted inserted replaced
54:e858e7e1aab4 55:a885f557678f
    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 ?>