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
ORA-00923: FROM keyword not found where expected on migrate #4844
Comments
Maybe could be the same problem here : #4835 |
As I can see select without from is not standard, so could be the problem here. |
Jupp, can confirm the bugs are related. If I roll back to 0.95.11 and run the migration it will succeed, after that I can go back to 0.95.14 and migrations will work again.. |
I assume that fix 'this.select(trxOrKnex.raw('?', [0]))' in _insertLockRowIfNeeded will be enough. |
Resolved by #4865 |
Released in 0.95.15 |
* Enable end-to-end tests for Oracle and SQLite * Add Oracle back to allVendors * Use yum * Use dnf * Actually use yum * Actually use dnf * Actually use yum * Try again * Try manual install * Fix env declaration * Bump knex version (because knex/knex#4844) * Set max pool size for Oracle * Add awaitDatabaseConnection * Cache install and build step * Run different tests sequentially * Fix workflow name * Show test results * Fix names * Fix success check * Fix outputs * Add oracle driver install * Fix env * Revert to previous structure to benchmark performance * Only build specs and drive packages for unit tests * Don't install everything to run linters * Use this branch * Fix missing lint dep * Revert "Don't install everything to run linters", also build shared package * Skip app build for tests * Don't serve app for e2e tests * Change time fields to timestamp becaues of inconsistencies between vendors * Make npm ci faster Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Environment
Knex version: 0.95.14
Database + version: Oracle 19c EE
OS: OS X + Windows + Linux
@atiertant
Bug
The resulting SQL when running eg.
knex migrate:up
orknex migrate:latest
is not valid SQL as the from keyword is missing, it works fine if you rollback to knex'v0.95.0`v0.95.13
Here's the debug output, the bug is right after the bind var:
Error message
Error: insert into "knex_migrations_lock" ("is_locked") select :1 where not exists (select * from "knex_migrations_lock") - ORA-00923: FROM keyword not found where expected
Reduced test code
Just run a migration on any project that uses knex 0.9.14 and oracledb
The text was updated successfully, but these errors were encountered: