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

Playbook - SQL - Error message is dropped if results are also returned #1183

Open
junaid-ebrahim opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working playbook
Milestone

Comments

@junaid-ebrahim
Copy link

When using the sql action with mssql ( but I suspect on all other sql types) , any raiserror message is missing in the result if the sql also returns a resultset, see example action below to reproduce, removing the select 'test result'; fixes the issue

    - name: raiserror1
      if: "always()"
      sql:
        connection: connection://default/mssql-db
        driver: mssql
        query: >
          select 'test result';raiserror('test error message 1',11,0)
@moshloop moshloop added the bug Something isn't working label Aug 14, 2024
@moshloop moshloop changed the title Error result missing in Sql action that returns recordset along with error Playbook - SQL - Error message is dropped if results are also returned Aug 14, 2024
@moshloop moshloop added this to the Backlog milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playbook
Projects
None yet
Development

No branches or pull requests

2 participants