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
Knex with official oracledb driver #373
Comments
Is this the oracle db support issue? Or the table name needs to be fixed? |
Table name passes inside double quotes to the DB like this: |
Does it work fine with |
Just tested with latest Knex v0.12.6, and the issue exists in Knex library. Meanwhile |
@tejzpr Seems to be an issue with knex. Would you mind reporting this issue with them? |
Done #1785 ! :) Also please do add that OracleDB driver also supported in AdonisJS docs. |
@tejzpr Does it only happens when table name case is mis-matched or everytime? |
This issue occurs only if table name or field name case mismatch occurs. If table name & field name is of the same case in DB and Model then everything works fine. Verified this by overriding table name in model by using the following code. |
A possible solution to this issue could be that any Table name or Field name generated for Oracle data source be converted to uppercase before passing on to Knex query builder since Oracle internally saves table names & field names in upper case. i.e. even if a table is created in lower case like |
Nope the end user should be responsible for setting up right database table name, instead of framework deciding it |
Since it's not an issue with lucid, neither with knex, closing the issue |
Since Adonis does not know whether the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi, Seems the official oracledb driver support was there in knex from version 0.11.8 knex/knex#990. I was able to connect to Oracle 12 by installing oracledb nodejs driver in my AdonisJS project using the following configuration:
But even after the connection got through, any queries made to OracleDB through the AdonisJS model resulted in an error. I am using a pre-defined table called 'USERS' (notice uppercase) with associated Model called Users. When the query is made to OracleDB it goes like this:
Error: select * from "users" - ORA-00942: table or view does not exist
Seems passing table names in quotes does not work with Oracle.. Is it possible to fix this issue from lucid so that we can add node/oracledb driver support to AdonisJS?
The text was updated successfully, but these errors were encountered: