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 output #2689

Open
JuchangGit opened this issue Jul 4, 2024 · 2 comments
Open

Stored procedure output #2689

JuchangGit opened this issue Jul 4, 2024 · 2 comments
Labels
enhancement needs more info An issue that may be a bug or useful feature, but requires more information

Comments

@JuchangGit
Copy link

How to obtain the status code and status information of a stored procedure ?

@mihaitodor
Copy link
Collaborator

mihaitodor commented Jul 5, 2024

Hey @JuchangGit, unfortunately the Connect sql_* components don't attempt to return any status information currently. I went through the database/sql package and it looks like the query Result only supports returning LastInsertId() and RowsAffected() which makes me wonder if there's any generic way of getting this status code that's portable across multiple drivers. For example, in the case of MSSQL, the denisenkom/go-mssqldb driver that's used in Connect seems to expose a driver-specific mechanism: https://pkg.go.dev/github.com/denisenkom/go-mssqldb#readme-return-status. If such custom mechanism needs to be used for each driver, then I think it's best to recommend maintaining a custom Connect component plugin on your end with the required enhancements.

@mihaitodor mihaitodor added enhancement needs more info An issue that may be a bug or useful feature, but requires more information labels Jul 5, 2024
@JuchangGit
Copy link
Author

thank you for your answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs more info An issue that may be a bug or useful feature, but requires more information
Projects
None yet
Development

No branches or pull requests

2 participants