rkitover@cpan.org via RT wrote:
Show quoted text> I'm not sure why the table is not getting dropped, as it is supposed to
> get dropped on finish, on DESTROY and on create during the next run in
> t/lib/dbixcsl_common_tests.pm.
>
> In your mysql shell, can you do:
>
> CREATE TABLE LOADER_TEST23 (ID INTEGER);
> DROP TABLE LOADER_TEST23;
>
> in uppercase?
>
> It's the only uppercase table, maybe that's the issue, I have no idea.
>
> I'm using MySQL 5.0 on this machine (though should upgrade to 5.5...)
This is 5.1.42 from MacPorts on OS X. I believe what's being run into here is
MySQL's schizoid approach to table case sensitivity tied to the filesystem.
In my case, a case insensitive filesystem means case insensitive table
names... sort of.
$ mysql5 test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 91
Server version: 5.1.42 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Show quoted textmysql> describe loader_test23;
ERROR 1146 (42S02): Table 'test.loader_test23' doesn't exist
Show quoted textmysql> describe LOADER_TEST23;
ERROR 1146 (42S02): Table 'test.loader_test23' doesn't exist
Show quoted textmysql> CREATE TABLE LOADER_TEST23 (ID INTEGER);
ERROR 1050 (42S01): Table 'loader_test23' already exists
Show quoted textmysql> DROP TABLE LOADER_TEST23;
ERROR 1051 (42S02): Unknown table 'loader_test23'
Show quoted textmysql> show tables;
+----------------------------+
| Tables_in_test |
+----------------------------+
| TestVersion |
| books |
| cd |
| cd_to_producer |
| dbix_class_schema_versions |
| foo |
| newstuff |
| oldstuff |
| owners |
| producer |
+----------------------------+
10 rows in set (0.00 sec)
But it works fine if its not all in upper case.
Show quoted textmysql> CREATE TABLE loader_test23 (ID INTEGER);
Query OK, 0 rows affected (0.05 sec)
Show quoted textmysql> drop TABLE loader_test23;
Query OK, 0 rows affected (0.00 sec)
Show quoted textmysql> CREATE TABLE LOADER_test23 (ID INTEGER);
Query OK, 0 rows affected (0.68 sec)
Show quoted textmysql> DROP TABLE LOADER_test23;
Query OK, 0 rows affected (0.00 sec)
It may well be this bug.
http://bugs.mysql.com/bug.php?id=37402
--
Whip me, beat me, make my code compatible with VMS!