Uploaded image for project: 'MariaDB Connector/R2DBC'
  1. MariaDB Connector/R2DBC
  2. R2DBC-120

Stored-procedure CALL detection wrongly matched any query containing "call"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.4.1
    • other
    • None

    Description

      createStatement() used sql.contains("call") to force the binary protocol for stored-procedure calls (needed for OUT parameters), so queries like SELECT callback FROM t were misrouted. Replaced with a proper prefix check that skips leading whitespace/comments and matches a leading CALL keyword.

      Reported and initially fixed by yunhobb (PR #92).

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.