Don't use temporary tables in foreign key test.

MySQL can't use foreign keys in temporary tables.