-
Notifications
You must be signed in to change notification settings - Fork 62
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
Incorrect denormalise name happening for all lowercase #122
Comments
The The actual query should be
but because the
which does not return any results |
Hello @prempiyush Thank you |
@bchoudhary6415 Yes, this happens when the schema/table is created using quotes. These are customer tables that are created with scripts. We do not have a choice of not enclosing them in quotes. I only have a free account and can not create DB2 schema there.. but this can be done using
|
@prempiyush |
@bchoudhary6415 Agreed. In that case, the query then becomes..
which is again incorrect.. and does not give proper results. |
@prempiyush |
@prempiyush |
@bchoudhary6415 Apologies for the delay. I do not have permissions to create new schema in my Cloud DB2 lite plan.. but the same thing happens for a table too.. I created a table This is how I am trying to access it
The error I am getting is this..
The table does exist in the schema.. |
@bchoudhary6415 Can you please share your email address? I sent an email to [email protected] but it bounced. |
Hello @prempiyush |
Hello @prempiyush import sqlalchemy engine = sqlalchemy.create_engine("ibm_db_sa://grg68694:****@fbd88901-ebdb-4a4f-a32e-9822b9fb237b.c1ogj3sd0tgtu0lqde00.databases.appdomain.cloud:32731/bludb;SECURITY=SSL;") metadata = sqlalchemy.MetaData(schema="grg68694") |
@bchoudhary6415 Why are you recommending this? This will not load the table contents. Can you please work towards fixing the bug instead of giving workarounds? |
@prempiyush |
|
@prempiyush |
@bchoudhary6415 Thank you but I don't want to fetch ALL the data in the table which is what I am sure you are aware that by running this snippet
I can get the schema of the table without worrying about what my underlying database is. Thank you but the workaround does not work in my case. I would appreciate if you can squash this bug please. |
@bchoudhary6415 @bimalkjha Any plans for this? |
@prempiyush As some parameters are deprecated or modified in latest version of SQLAlchemy. I'm looking into it. As we are giving support for latest version of SQLAlchemy, so we will resolve this issue with latest support. Thank you |
@prempiyush Can you please share "list tables" output for the schema grg68694? |
@prempiyush The fix for this issue is given. Please verify through the latest PR - #126. Now you can use single quotes (" 'testtable' ") to refer lowercase table name in Db2 database as metadata = sqlalchemy.MetaData(bind=engine , schema="grg68694") If table name is in capital later only, Don't need to give single quotes (" testtable ") and this will be referred as I'm closing this issue now. |
We have a schema name in all lower case
schema01
and a table in mixed caseTableName01
in DB2When we are trying to reflect the table using SQLAlchemy, the code says that the table does not exist.
I found that this method in ibm_db_sa is converting
schema01
toSCHEMA01
Can you please help @bchoudhary6415 @bimalkjha
The text was updated successfully, but these errors were encountered: