#1697: CHECK() doesn't create in postgresql
-----------------------------------+----------------------------------------
Reporter: phprus | Owner: jwage
Type: defect | Status: new
Priority: major | Milestone: 1.0.5
Component: Import/Export | Version: 1.0-DEV
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
Function createTableSql from file Doctrine/Export/Pgsql.php doesn't have
code to generation CHECK() block.
Replace:
{{{
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . '
(' . $queryFields . ')';
}}}
To:
{{{
$query = 'CREATE TABLE ' . $this->conn->quoteIdentifier($name, true) . '
(' . $queryFields;
if ($check = $this->getCheckDeclaration($fields)) {
$query .= ', ' . $check;
}
if (isset($options['checks']) && $check =
$this->getCheckDeclaration($options['checks'])) {
$query .= ', ' . $check;
}
$query .= ')';
}}}
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1697>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---