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

Variable initialization ahead of LOAD DATA INFILE not possible by validateLocalFileName pattern

Details

    Description

      The pattern in org.mariadb.jdbc.message.ClientMessage.validateLocalFileName requires that the sql statement - apart from leading comments - starts with the "LOAD DATA" statement.

      The combination with other statements within the same sql string is blocked.

      A statement like the this is therefor currently not possible:
      {{SET @row = 0; LOAD DATA ... SET file_line_no = @row:=@row+1;
      }}

      The validateLocalFileName need be adjusted to allow other statements prior to the "LOAD DATA" statement in the sql string.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            diego dupin Diego Dupin
            HK Holger Kretschmer
            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.