anyone know how to handle multiple dialects in lucee for two database types? MySQL and Microsoft SQL Server.
I tried something like this in my application.cfc but it does not respect this.
this.datasources["a"] = {
class: 'com.microsoft.jdbc.sqlserver.SQLServerDriver'
, connectionString: 'jdbc:sqlserver://0.0.0.0:1433;DATABASENAME=data;sendStringParametersAsUnicode=true;SelectMethod=direct;useUnicode=true;characterEncoding=UTF-8'
, connectionLimit:25 // default:-1
, connectionTimeout:1 // default: 1; unit: seconds
, dialect: "MicrosoftSQLServer"
};
this.datasources["b"] = {
class: 'org.gjt.mm.mysql.Driver'
, dialect: "MySQLwithInnoDB"
};
It only understands this.ormSettings.dialect = "MicrosoftSQLServer" which creates a problem when having two database types.
I ask this question b/c I'm trying to fix another issue in a previous email i sent a few minutes ago with database driver returning random errors. So my thought was to upgrade the driver to the latest ODBC driver.
When I reference the new JDBC driver, and Lucee is unable to detect the dialect type automatically.
My hope is the error I was getting is caused by the driver and NOT lucee.