Uploaded image for project: 'Lucee Development'
  1. LDEV-1292

Defining a MySql datasource in Application.cfc with custom connection parameters fails

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.1.3.18
    • Fix Version/s: 5.2.2.25
    • Labels:
      None
    • Sprint:
      May-June 2017 Sprint

      Description

      Defining a MySql datasource in Application.cfc as follows...

      this.datasource = {
       type: "mysql"
       ,host: "localhost"
       ,port: 3306
       ,database: "testdb"
       ,username: "dbuser"
       ,password: "secret"
       ,custom: { useUnicode:true }
      };
      

      ...fails with the following exception message:

      Unknown database 'testdbuseunicodetrue'
      

      If I add a question mark to the database name, it works correctly:

      database: "testdb?"

      It would seem the question mark isn't being added when constructing the connection string.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              julianhalliwell Julian Halliwell
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: