Changeset 756 for branches/1.1dev/polyfill/mysql.inc.php
- Timestamp:
- Nov 16, 2021 8:30:58 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/polyfill/mysql.inc.php
r699 r756 176 176 try { 177 177 // Add instance 178 $this->_instances[$usePosition] = new P do($dsn, $username, $password, $flags);178 $this->_instances[$usePosition] = new PDO($dsn, $username, $password, $flags); 179 179 180 180 return $usePosition; … … 211 211 try { 212 212 $this->_params[$link]['databaseName'] = $databaseName; 213 return $this->mysql_query("USE {$databaseName}", $link);213 return $this->mysql_query("USE `{$databaseName}`", $link); 214 214 } catch (PDOException $e) { 215 215 return false; … … 265 265 static $last = null; 266 266 267 if ($result === false ) {267 if ($result === false || $result === null) { 268 268 trigger_error('mysql_fetch_*(): supplied argument is not a valid MySQL result resource', E_USER_WARNING); 269 269 return false;
Note: See TracChangeset
for help on using the changeset viewer.