Open anthozep opened 4 years ago
@anthozep 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.
Hi @anthozep, thanks for using Sails. You might be able to use .timeout() (chained onto the end of sendNativeQuery), passing in the number of MS to help with that. (https://sailsjs.com/documentation/reference/request-req/req-set-timeout#req-settimeout-)
Node version: 12.14.1 Sails version (sails): 1.2.4 ORM hook version (sails-hook-orm): 2.1.1 Sockets hook version (sails-hook-sockets): 2.0.0 Organics hook version (sails-hook-organics): N/A Grunt hook version (sails-hook-grunt): 3.1.0 Uploads hook version (sails-hook-uploads): N/A 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): N/A
Hi,
I have a MySQL stored procedure I'm calling via sails.sendNativeQuery like so:
The stored procedure does some preflight checks and executed SIGNAL SQLSTATE '45000' when there is an error, like so:
This appears to work fine.
However, we recently had an issue where there was a duplicate column name in one of the queries in the procedure, it did not return any errors and the request hung. When I ran the procedure directly against the database, it told me there was a duplicate column and exited. Is there a way to catch those types of issues?