Avoid multiple NOT NULL parameters, as with MySQL auto_increment fields

This commit is contained in:
shrykedude 2004-01-18 02:23:48 +00:00
parent 7fa04fe669
commit 653a5e78d3

View File

@ -412,9 +412,12 @@
if($sFieldSQL = $this->m_oTranslator->TranslateType($sType, $iPrecision, $iScale))
{
if(!$bNullable)
{
if(strpos(strtolower($sFieldSQL),' not null')===false)
{
$sFieldSQL .= ' NOT NULL';
}
}
if(isset($aField['default']))
{