-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stored procedure execution option #1
Conversation
.then(function(){ | ||
db.execute(driver.createSP3); | ||
}); | ||
done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're calling done here before the completion of the db.exeutes.
The done() should be a .then() block
Hi Karl, I have done the changes as per your feedback. Please let me know if any changes needed. Thanks, |
var procedure = function(){ | ||
throw new Error('No stored procedure feature for sqlite3.'); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this method
1) Code modfied to expose procedure object if it really exist 2) Replaced promises instead of callback
…o mssqldriver class iteself
1) Code modfied to read sql scripts from files 2) Replaced promises instead of callback
…be available in test/sql/ directory
|
||
describe('Unhappy Stored Procedure', function() { | ||
|
||
it('should through error if not a valid stored procedure', function(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
through=throw
Stored procedure execution option
Hi Karl,
I have added stored procedure execution option in the osql module. Also I have added test cases to test stored procedure execution.
We have an issue in mssql module itself, that is output parameter to the stored procedure is not getting result back in the results. I have raised an ticket for this issue(tediousjs/node-mssql#133) .
Please share your review comments,
Note:- I'll update readme document after your review comments.
Thanks,
Dharma.