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

createDatabaseIfNotExist doesn't work with Connector/J 3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.2-rc
    • 3.0.3
    • question
    • None

    Description

      Looks like createDatabaseIfNotExist parameter, which was doing something like CREATE DATABASE IF NOT EXISTS, was dropped in v3.

      While it shouldn't be used in prod, it comes in handy for tests. And workaround is a bit awkward - one needs to connect to a URL without schema (to avoid failure on USE) and execute CREATE DATABASE IF NOT EXISTS, then reconnect with schema in URL (to avoid executing USE manually).

      It's also supported by Oracle MySQL driver and it would be nice if MariaDB one would be a drop-in replacement for it (what was the case with v2, and I must admit a great replacement!).

      I wonder was it done on purpose, or it's just a missing feature at the moment?

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            oleg.n.alex Oleg Alexeyev
            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.