Skip to content
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

Invalid usage of the option NEXT in the FETCH when creating an object #423

Open
nyejon opened this issue May 5, 2020 · 4 comments
Open

Comments

@nyejon
Copy link

nyejon commented May 5, 2020

Expected behavior

Create an item when clicking create

Actual behavior

Click create object and I get the error:

forestadmin | [forest] ���🌳🌳🌳 Unexpected error: Invalid usage of the option NEXT in the FETCH stat
forestadmin | SequelizeDatabaseError: Invalid usage of the option NEXT in the FETCH statement.

  • Database Dialect: mssql
  • Database Version: AzureSQL
@arnaudbesnier
Copy link
Member

Hi @nyejon,

I feel this an error of the sequelize dependency.
See the following similar issue description:
sequelize/sequelize#10472

@nyejon
Copy link
Author

nyejon commented May 6, 2020

I see they had a solution in the thread. Not sure if something similar to that is happening here?

@rap2hpoutre
Copy link
Contributor

@nyejon It seems it has been fixed and released a few days ago: sequelize/sequelize#12261 (but it is only in Sequelize v6, not v5: unfortunately, it contains breaking changes: https://github.com/sequelize/sequelize/releases/tag/v6.1.0 so I'm not sure if it will work as is). Let me know if you find a way to make it work with this version.

@nyejon
Copy link
Author

nyejon commented Jul 13, 2020

Hi @rap2hpoutre, I gave it a test and it definitely will require changes to get it working. This is unfortunately out of my js knowledge...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants