Index: wp-includes/wp-db.php
===================================================================
--- wp-includes/wp-db.php	(revision 20577)
+++ wp-includes/wp-db.php	(working copy)
@@ -1033,11 +1033,21 @@
 	function db_connect() {
 
 		$this->is_mysql = true;
+		
+		if ( defined( 'DB_NEW_LINK' ) )
+			$this->newlink = DB_NEW_LINK;
+		else 
+			$this->newlink = true;
 
+		if ( defined( 'DB_CLIENT_FLAGS' ) ) 
+			$this->client_flags = DB_CLIENT_FLAGS;
+		else
+			$this->client_flags = 0;
+			
 		if ( WP_DEBUG ) {
-			$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
+			$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->newlink, $this->client_flags );
 		} else {
-			$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
+			$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->newlink, $this->client_flags );
 		}
 
 		if ( !$this->dbh ) {
