Commit 2a6286fc authored by Adrian Rossouw's avatar Adrian Rossouw

Escape table names. thanks pokurek. : #823360

parent 08121110
......@@ -243,5 +243,5 @@ function hosting_package_comparison($current, $target) {
function _hosting_package_temporary_table($name, $ref) {
db_query("CREATE TEMPORARY TABLE %s AS SELECT nid, short_name, old_short_name, version_code, schema_version, version, status from hosting_package p left join hosting_package_instance i on p.nid = i.package_id where rid= %d", $name, $ref);
db_query("CREATE TEMPORARY TABLE %s AS SELECT nid, short_name, old_short_name, version_code, schema_version, version, status from {hosting_package} p left join {hosting_package_instance} i on p.nid = i.package_id where rid= %d", $name, $ref);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment