From 87da28f8d46641796f2770f7e89395553dc2218d Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Mon, 23 Jan 2006 01:36:09 +0000 Subject: [PATCH] - #40515: PHP 5.1.1+ does not recognize \{ --- database/updates.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/updates.inc b/database/updates.inc index ec0de241a473..d9c620d34f60 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? -- GitLab