Small change to the RenameTable function in MySQL. This will allow for older versions of MySQL to be used.

This commit is contained in:
skeeter 2001-10-18 01:02:49 +00:00
parent 05d336e5b0
commit 00e7719717

View File

@ -285,7 +285,7 @@
function RenameTable($oProc, &$aTables, $sOldTableName, $sNewTableName)
{
return !!($oProc->m_odb->query("ALTER TABLE $sOldTableName RENAME TO $sNewTableName"));
return !!($oProc->m_odb->query("ALTER TABLE $sOldTableName RENAME $sNewTableName"));
}
function RenameColumn($oProc, &$aTables, $sTableName, $sOldColumnName, $sNewColumnName, $bCopyData = true)