Skip to content
Snippets Groups Projects

Issue #3397680 by rlm: Escape column name in field exists.

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -534,7 +534,7 @@ public function fieldExists($table, $column) {
// @todo: This override should be removed once we require a version of MySQL
// that has that bug fixed.
try {
$this->connection->queryRange("SELECT $column FROM {" . $table . "}", 0, 1);
$this->connection->queryRange('SELECT `' . $column . '` FROM {' . $table . '}', 0, 1);
return TRUE;
}
catch (Exception $e) {
Loading