-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Column case is ignored #649
Comments
The default is to follow PosgreSQL defaults and down case every identifier. Use And yes it is documented at https://github.com/dimitri/pgloader/blob/master/pgloader.1.md#load-mysql-database
|
Sorry to reopen an old issue, but this is not working so well. When I try to add the --with option it doesn't work, no matter if I put it before the mysql & postgres urls, or after them
|
This is a type error that IMO shouldn't have happened. Reopening. |
I am also facing the same issue when running pgloader on a sqlite database. The loaded table names and columns are always in lower case.
Can someone help? |
This happens because of an UTF-8 decoding error. Is a |
@phoe The loader works fine without the |
Hmmm. It seems that the issue is distinct from the one in the original post. Please open a new issue with this bugreport. Also, if possible, please attach a minimal reproducible test case - for debugging, we'll need a |
Just tried and failed to reproduce the error with MySQL, and then the error with SQLite is explained in #1142: please use options before arguments in the command line. |
First of all thnx for implementing this awesome piece of software 👍 I used the pgloader version that came with ubuntu 22.04 LTS -> pgloader 3.6.3-1ubuntu1 pgloader --version I migrated some data from mysql |
I also tried the latest docker version ... same behavior with
table name case sensitivity is ignored.
|
I converted a mysql database to postgres by running:
and the new postgres database is unusable by my application because the case is broken in any column name that used mixed or camel case. e.g. A column called
someColumn
gets turned intosomecolumn
, which in postgres are not the same. It appears all columns were converted to lower-case.The help docs don't mention any option to change this. Is there any way to stop this from happening or is this a limitation of the tool?
The text was updated successfully, but these errors were encountered: