MH2ag
June 28, 2022, 3:03pm
1
I get the following error in my logs of my NodeJS Webserver:
I run some automated Schedule Tasks from my Wappler Website.
.returning() is not supported by mysql and will not have any effect.
I know it is just a warning, but it would be great to know what's the reason for the error and what I can do to solve it. I assume that it has to do with the formatters and knex.
I already wrote about it in my following post 2 years ago:
Thanks lot for the new formatters!
One question: I get the following error if I use the formatter on insert:
.returning() is not supported by mysql and will not have any effect.
Any idea how to solve this?
EDIT: Everything works! It was my error . I forgot () on one formatter!
1 Like
It’s an issue with Knex and only a warning so can be ignored.
More here:
opened 03:25PM - 14 Jul 20 UTC
closed 04:20AM - 23 Sep 20 UTC
Starting with lucid version 6.1.4, my create or createMany calls are now returning the following error in console:
.returning() is not supported...
Type: Question
1 Like
MH2ag
June 29, 2022, 3:46pm
3
I know, but if I read the answers on github correctly, there is a fix for this.
Sure. If you want to hack the Knex code. Good luck if so.
sid
August 29, 2022, 4:58pm
5
@patrick This warning is just annoying. Can Wappler update the Knex version to get the fix? Or what can be done?
Not sure it this has already been fixed in 5.0.x
2 Likes
Latest version of Knex still has the warning.
MH2ag
August 30, 2022, 9:14am
7
Thanks for the update. Is there something the Wappler Team can do to avoid the warning?
George
December 26, 2022, 9:32am
9
This should be now solved with the latest Knex update that we have incorporated few Wappler updates ago.
1 Like
Is this really fixed?
I'm still getting these today. Yes, I know I can ignore, but it would be great to keep the logs clean.
Just a thought...
Is the "experimental" fearures option still exists/supported?
I guess it will always be there for new features testing...
Tried to disable it Ken and see if the console error is still there?
Have improved the script to do a runtime check of the driver being used and ignore the returning for mysql.
db.zip (1.7 KB) unzip to lib/core
.
1 Like
George
July 5, 2024, 8:49am
16
Implemented now in Wappler 6.7.2
George
Closed
July 6, 2024, 6:00am
18
This topic was automatically closed after 21 hours. New replies are no longer allowed.