fixed error with fulltext indexes (eg. in the wiki), when the default-type-type is set to InnoDB, which is eg. the default for some newer windows installs or mysql 4.1.x

This commit is contained in:
Ralf Becker 2005-02-04 10:46:21 +00:00
parent 0f7d93fa3e
commit f48bb9f670

View File

@ -417,6 +417,11 @@
}
$query = "CREATE TABLE $sTableName ($sTableSQL)";
// override default table type, if a fulltext index is requested, as only MyISAM can do fulltext
if (stristr($sTableSQL,'FULLTEXT') !== false)
{
$query .= 'TYPE=MyISAM';
}
return !!($oProc->m_odb->query($query));
}