1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Again... Prevent quoting two times the table name, bug report by g00fy on irc, seems like this bug could be on other drivers as well

This commit is contained in:
jackbravo 2007-08-25 00:17:30 +00:00
parent 95d443575f
commit d47b8f11ec
2 changed files with 2 additions and 4 deletions

View File

@ -137,8 +137,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
}
$name = $this->conn->quoteIdentifier($name, true);
$query = 'CREATE TABLE ' . $name . ' (' . $queryFields . ')';
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . ' (' . $queryFields . ')';
$optionStrings = array();

View File

@ -308,8 +308,7 @@ class Doctrine_Export_Pgsql extends Doctrine_Export
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
}
$name = $this->conn->quoteIdentifier($name, true);
$query = 'CREATE TABLE ' . $name . ' (' . $queryFields . ')';
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . ' (' . $queryFields . ')';
$sql[] = $query;