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

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.1.6, 1.1.7
    • 1.1.8
    • None
    • 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

            massimo.siani Massimo Siani (Inactive)
            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.