Patch for ChangeTableSQL() to improve portability