MySQL check for case sensitivity in reflecttable raise ValueError for MySQL 4.0

Issue #489 resolved
Former user created an issue

Currently, to check for case sensitivity, MySQLDialect executes "show variables like 'lower_case_table_names'" and fetches the first row's value. In MySQL 5.0, this will be a string "1" or "0", but in older versions (at least in 4.0, where I am testing) it returns "ON" or "OFF", so the subsequent cast to integer raises a ValueError.

See line 347 in databases/mysql.py.

Comments (8)

  1. Mike Bayer repo owner

    wow we keep having to massage that line, for returning numbers, strings, arrays...now "ON" and "OFF" eh ? OK....what exact version of mysql, out of curiousity ?

  2. Former user Account Deleted
    mysql> select version();
    +---------------------+
    | version()           |
    +---------------------+
    | 4.0.15-standard-log |
    +---------------------+
    1 row in set (0.00 sec)
    

    Pretty sad that we're still using this version...

  3. Log in to comment