Changeset 7579 for trunk/wp-includes/wp-db.php
- Timestamp:
- 03/30/2008 05:56:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r7431 r7579 85 85 $this->ready = true; 86 86 87 if ( !empty($this->charset) && version_compare(mysql_get_server_info($this->dbh), '4.1.0', '>=') ) 88 $this->query("SET NAMES '$this->charset'"); 89 87 if ( $this->supports_collation() ) { 88 $collation_query = ''; 89 if ( !empty($this->charset) ) { 90 $collation_query = "SET NAMES '{$this->charset}'"; 91 if (!empty($this->collate) ) 92 $collation_query .= " COLLATE '{$this->collate}'"; 93 } 94 95 if ( !empty($collation_query) ) 96 $this->query($collation_query); 97 98 } 99 90 100 $this->select($dbname); 91 101 }
Note: See TracChangeset
for help on using the changeset viewer.