diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-23 01:36:09 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-23 01:36:09 +0000 |
commit | 87da28f8d46641796f2770f7e89395553dc2218d (patch) | |
tree | 0f0f114e527ae1d3f3247de7242c4aac74c22945 /database | |
parent | c4e613790172d288ac1a70d74e7007c1391bae35 (diff) | |
download | brdo-87da28f8d46641796f2770f7e89395553dc2218d.tar.gz brdo-87da28f8d46641796f2770f7e89395553dc2218d.tar.bz2 |
- #40515: PHP 5.1.1+ does not recognize \{
Diffstat (limited to 'database')
-rw-r--r-- | database/updates.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/database/updates.inc b/database/updates.inc index ec0de241a..d9c620d34 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1525,10 +1525,10 @@ function _system_update_utf8($tables) { $convert_to_utf8 = array(); // Set table default charset - $ret[] = update_sql("ALTER TABLE \{$table} DEFAULT CHARACTER SET utf8"); + $ret[] = update_sql('ALTER TABLE {'. $table .'} DEFAULT CHARACTER SET utf8'); // Find out which columns need converting and build SQL statements - $result = db_query("SHOW FULL COLUMNS FROM \{$table}"); + $result = db_query('SHOW FULL COLUMNS FROM {'. $table .'}'); while ($column = db_fetch_array($result)) { list($type) = explode('(', $column['Type']); if (isset($types[$type])) { @@ -1544,9 +1544,9 @@ function _system_update_utf8($tables) { if (count($convert_to_binary)) { // Convert text columns to binary - $ret[] = update_sql("ALTER TABLE \{$table} ". implode(', ', $convert_to_binary)); + $ret[] = update_sql('ALTER TABLE {'. $table .'} '. implode(', ', $convert_to_binary)); // Convert binary columns to UTF-8 - $ret[] = update_sql("ALTER TABLE \{$table} ". implode(', ', $convert_to_utf8)); + $ret[] = update_sql('ALTER TABLE {'. $table .'} '. implode(', ', $convert_to_utf8)); } // Are we done? |