Replaced the USE with a mysql_select_db() to cut out one query
authorDan
Wed, 13 May 2009 09:47:31 -0400
changeset 973 451141c834fe
parent 972 437f2505d340
child 974 6bfe9eb428e9
Replaced the USE with a mysql_select_db() to cut out one query
includes/dbal.php
--- a/includes/dbal.php	Wed May 13 09:46:54 2009 -0400
+++ b/includes/dbal.php	Wed May 13 09:47:31 2009 -0400
@@ -232,7 +232,7 @@
     
     $this->debug = ( defined('ENANO_DEBUG') );
     
-    $q = $this->sql_query('USE `'.$dbname.'`;');
+    $q = @mysql_select_db($dbname);
     
     if ( !$q )
     {