New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing case in table name #1200
Comments
Not 'strictly' a bug, but a quirk! ;) Table names in SQLite are case insensitive, so if you want to change the case, change the name also (eg, DazData to dazdataa, then dazdataa back to dazdata) Guess DB4S could do similar - when changing a name, change it to something random, then back again to what the user wanted. I thought DOS would have the same issue, but Win 10 handles it correctly. |
Hmmm, wonder how well foreign keys referencing the table-being-renamed would go with that approach. Might need to do something with pragma's to disable foreign key checking until the renaming is completed. |
OK, will try that workaround. Thanks! :) |
SQLite doesn't support this by itself, so we have to work around it. See issue #1200.
I've just added this workaround to our code 😄 So with tomorrow's nightly build onwards, you don't have to this yourself anymore and changing the case in table names will "just work". Are you ok to give that a try and see if it's working for you, @zentaz? |
Just tried the latest build, changing case works fine now. Thanks very much! :) |
Cool, thanks for confirming 😄 |
Details for the issue
Hi,
When trying to change case in table name I get an error message saying that table already exists.
I assume this is a bug?
Thanks!
Richard
Useful extra information
I'm opening this issue because:
I'm using DB4S on:
I'm using DB4S version:
I have also:
The text was updated successfully, but these errors were encountered: