- Patch #310607 by mfer: fixed undefined method problem with database code.

merge-requests/26/head
Dries Buytaert 2008-09-19 20:30:32 +00:00
parent fa8abcbf3b
commit 67f93fcb16
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class DatabaseSchema_mysql extends DatabaseSchema {
}
public function columnExists($table, $column) {
return (bool) $this->connection->query("SHOW COLUMNS FROM {" . $this->escapeTable($table) . "} LIKE '" . $this->escapeTable($column) . "'", array(), array())->fetchField();
return (bool) $this->connection->query("SHOW COLUMNS FROM {" . $this->connection->escapeTable($table) . "} LIKE '" . $this->connection->escapeTable($column) . "'", array(), array())->fetchField();
}