From: Nick Jenkins Date: Fri, 12 Jan 2007 06:35:10 +0000 (+0000) Subject: This would actually do a SQL query of literally 'TRUNCATE $tableName;' - switching... X-Git-Tag: 1.31.0-rc.0~54473 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=b582d1cdd75e4e3cd1a76d742134e55288c8e599;p=lhc%2Fweb%2Fwiklou.git This would actually do a SQL query of literally 'TRUNCATE $tableName;' - switching to "" quotes so that $tableName is substituted with the correct value. --- diff --git a/maintenance/FiveUpgrade.inc b/maintenance/FiveUpgrade.inc index 8b7e613daa..4e69603700 100644 --- a/maintenance/FiveUpgrade.inc +++ b/maintenance/FiveUpgrade.inc @@ -738,7 +738,7 @@ END; function clearTable( $table ) { print "Clearing $table...\n"; $tableName = $this->db->tableName( $table ); - $this->db->query( 'TRUNCATE $tableName' ); + $this->db->query( "TRUNCATE $tableName" ); } /**