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:
parent
95d443575f
commit
d47b8f11ec
@ -137,8 +137,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
|
|||||||
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
|
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $this->conn->quoteIdentifier($name, true);
|
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . ' (' . $queryFields . ')';
|
||||||
$query = 'CREATE TABLE ' . $name . ' (' . $queryFields . ')';
|
|
||||||
|
|
||||||
$optionStrings = array();
|
$optionStrings = array();
|
||||||
|
|
||||||
|
@ -308,8 +308,7 @@ class Doctrine_Export_Pgsql extends Doctrine_Export
|
|||||||
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
|
$queryFields .= ', PRIMARY KEY(' . implode(', ', array_values($options['primary'])) . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $this->conn->quoteIdentifier($name, true);
|
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . ' (' . $queryFields . ')';
|
||||||
$query = 'CREATE TABLE ' . $name . ' (' . $queryFields . ')';
|
|
||||||
|
|
||||||
$sql[] = $query;
|
$sql[] = $query;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user