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

Stored procedure execution option #1

Merged
merged 17 commits into from
Mar 17, 2015

Conversation

dharmaraj-ramasamy
Copy link
Contributor

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.

.then(function(){
db.execute(driver.createSP3);
});
done();
Copy link
Owner

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

@dharmaraj-ramasamy
Copy link
Contributor Author

Hi Karl,

I have done the changes as per your feedback.

Please let me know if any changes needed.

Thanks,
Dharma.

var procedure = function(){
throw new Error('No stored procedure feature for sqlite3.');
};

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

Copy link
Contributor Author

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
1) Code modfied to read sql scripts from files
2) Replaced promises instead of callback

describe('Unhappy Stored Procedure', function() {

it('should through error if not a valid stored procedure', function(done) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

through=throw

cookie-bytes added a commit that referenced this pull request Mar 17, 2015
Stored procedure execution option
@cookie-bytes cookie-bytes merged commit 807571c into Stono:develop Mar 17, 2015
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

Successfully merging this pull request may close these issues.

3 participants