1919* MySQL dbal extension
2020* @package dbal
2121*/
22- class dbal_mysql_qi extends \ phpbb \ db \ driver \mysql
22+ class dbal_mysql_qi extends dbal_mysql
2323{
2424 public $ mysql_version ;
2525
2626 /**
2727 * Connect to server
2828 */
29- public function sql_connect ($ sqlserver , $ sqluser , $ sqlpassword , $ database , $ port = false , $ persistency = false , $ new_link = false )
29+ function sql_connect ($ sqlserver , $ sqluser , $ sqlpassword , $ database , $ port = false , $ persistency = false , $ new_link = false )
3030 {
3131 $ this ->persistency = $ persistency ;
3232 $ this ->user = $ sqluser ;
3333 $ this ->server = $ sqlserver . (($ port ) ? ': ' . $ port : '' );
3434 $ this ->dbname = $ database ;
3535
36- $ this ->sql_layer = 'mysql4 ' ;
36+ $ this ->sql_layer = 'mysql_40 ' ;
3737
3838 $ this ->db_connect_id = ($ this ->persistency ) ? @mysql_pconnect ($ this ->server , $ this ->user , $ sqlpassword , $ new_link ) : @mysql_connect ($ this ->server , $ this ->user , $ sqlpassword , $ new_link );
3939
4040 if ($ this ->db_connect_id )
4141 {
4242 // Determine what version we are using and if it natively supports UNICODE
43- $ this ->mysql_version = $ this ->sql_server_info ( true );
43+ $ this ->mysql_version = mysql_get_server_info ( $ this ->db_connect_id );
4444
4545 if (version_compare ($ this ->mysql_version , '4.1.3 ' , '>= ' ))
4646 {
@@ -61,9 +61,8 @@ public function sql_connect($sqlserver, $sqluser, $sqlpassword, $database, $port
6161 * Select a database
6262 *
6363 * @param string $dbname
64- * @return bool
6564 */
66- public function sql_select_db ($ dbname )
65+ function sql_select_db ($ dbname )
6766 {
6867 return @mysql_select_db ($ dbname , $ this ->db_connect_id );
6968 }
0 commit comments