Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1176

Statement.getWarnings() is null (sometimes) although there are errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Cannot Reproduce
    • 3.3.2, 3.3.3
    • N/A
    • Oracle compatibility
    • None
    • MariaDB 10.6.5 (docker)

    Description

      org.mariadb.jdbc.Statement.getWarnings() is null in the case below:

      CREATE OR REPLACE PACKAGE `test`.`employee_tools` AS
        FUNCTION getSalary(eid INT) RETURN DEXIMAL(10,2);
      END
      

      Expected a warning. This is used to determine where in the statement things went wrong. The exception also does not seem to contain any information about where the error happened:

      e = {SQLException@14683} "java.sql.SQLException: (conn=13) Unknown data type: 'DEXIMAL'"
       SQLState = "HY000"
       vendorCode = 4161
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            eduward Edward Larsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.