diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-04 06:32:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-04 06:32:17 +0000 |
commit | 3abd531fba32ef7f4b994f6b11ff263c98dbe4c5 (patch) | |
tree | e84fc1676d199ae31a6a976ec2ec1659be041271 /includes | |
parent | b0ccdd86ea9f1229e7ea5dd1b28db23815470590 (diff) | |
download | brdo-3abd531fba32ef7f4b994f6b11ff263c98dbe4c5.tar.gz brdo-3abd531fba32ef7f4b994f6b11ff263c98dbe4c5.tar.bz2 |
#315047 by Josh Waihi: Escape PostgreSQL column names in the changeField function.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/pgsql/schema.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/pgsql/schema.inc b/includes/database/pgsql/schema.inc index e438b5d76..4c638c92c 100644 --- a/includes/database/pgsql/schema.inc +++ b/includes/database/pgsql/schema.inc @@ -547,7 +547,7 @@ class DatabaseSchema_pgsql extends DatabaseSchema { * table specification but without the 'fields' element. */ public function changeField(&$ret, $table, $field, $field_new, $spec, $new_keys = array()) { - $ret[] = update_sql("ALTER TABLE {" . $table . "} RENAME $field TO " . $field . "_old"); + $ret[] = update_sql('ALTER TABLE {' . $table . '} RENAME "' . $field . '" TO "' . $field . '_old"'); $not_null = isset($spec['not null']) ? $spec['not null'] : FALSE; unset($spec['not null']); |