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

Can't connect anymore on a database containing spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.6, 1.1.7
    • Fix Version/s: 1.1.8
    • Component/s: None
    • Labels:
      None

      Description

      There is now a java.sql.SQLSyntaxErrorException when trying to connect to a database containing spaces.

      It's since version 1.1.6 and these changes in MySQLProtocol.java :

      if (database != null && database.length() > 0)
      {
      // and switch to this database
      executeQuery(new MySQLQuery("USE " + database));
      }

        Attachments

          Activity

            People

            Assignee:
            massimo.siani Massimo Siani (Inactive)
            Reporter:
            Foetus34 Frédéric RENAULT
            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.