Show
Ignore:
Timestamp:
08/18/08 21:44:07 (19 months ago)
Author:
guilhermeblanco
Message:

fixed #1266. Thanks for the information!
Also I removed the comments I added previously in JoinConditionTestCase?.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Export.php

    r4778 r4779  
    716716                    ' ' . $this->getCollationFieldDeclaration($field['collation']) : ''; 
    717717 
    718         $notnull   = (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; 
     718        $notnull   = $this->getNotNullFieldDeclaration($field); 
    719719 
    720720        $unique    = (isset($field['unique']) && $field['unique']) ? 
     
    774774        return $default; 
    775775    } 
     776     
     777 
     778    /** 
     779     * getDefaultDeclaration 
     780     * Obtain DBMS specific SQL code portion needed to set a NOT NULL 
     781     * declaration to be used in statements like CREATE TABLE. 
     782     * 
     783     * @param array $field      field definition array 
     784     * @return string           DBMS specific SQL code portion needed to set a default value 
     785     */ 
     786    public function getNotNullFieldDeclaration(array $definition) 
     787    { 
     788        return (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; 
     789    } 
     790     
    776791 
    777792    /**