Open asder136 opened 3 years ago
@gunman-ill Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
@gunman-ill It might be relevant to know if you're using callbacks/Promises/await. Can you share an example of how you're triggering sendNativeQuery()
?
Hi @gunman-ill, would you be able to create a minimal sails app in a repo that reproduces this issue? Thanks!
Node version: 12.19.0 Sails version (sails): 1.4.0 ORM hook version (sails-hook-orm): 3.0.1 Sockets hook version (sails-hook-sockets): 2.0.0 Organics hook version (sails-hook-organics): 2.2.0 Grunt hook version (sails-hook-grunt): 4.0.1 Uploads hook version (sails-hook-uploads): DB adapter & version (e.g. sails-mysql@5.55.5): sails-mysql@1.0.1 Skipper adapter & version (e.g. skipper-s3@5.55.5):
After upgrading Sails.js to v1.0 native SQL queries Model.getDatastore().sendNativeQuery() fires callback multiple times. Below is console trace:
So finally I get an error in async utils that 'next' callback was called multiple times:
Does anyone know WTF?
And I'm using MariaDB as a database, but previously everything was fine.