Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv12078
Modified Files:
serendipity_db_mysql.inc.php
Log Message:
Attempting to fix bug 780149.
We select the database during _connect and just use mysql_query()
Thereby the _probe function will be the one setting the database for us (during installation), and the rest of the queries will just use that database
Index: serendipity_db_mysql.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_db_mysql.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- serendipity_db_mysql.inc.php 25 Jul 2003 01:03:18 -0000 1.10
+++ serendipity_db_mysql.inc.php 30 Jul 2003 16:38:35 -0000 1.11
@@ -18,7 +18,7 @@
// highlight_string(var_export($sql, 1));
- $c = mysql_db_query($serendipity['dbName'], $sql);
+ $c = mysql_query($sql);
if (!$c) {
if (!$serendipity['production']) {
@@ -84,7 +84,7 @@
}
$serendipity['dbConn'] = mysql_connect($serendipity['dbHost'], $serendipity['dbUser'], $serendipity['dbPass']);
-
+ mysql_select_db($serendipity['dbName']);
return $serendipity['dbConn'];
}
|