Question
Mysql connection string - custom db session vars
Hi, I'm having an issue with the initialization of my
database session through coldfusion.
This is on MySQL 5.1.28
Specifically, it's an issue with the tx_isolation variable in MySQL.
When I initialize a database connection, I don't get the right session default. I have determined that this only occurs through CF. I don't get the same problem connecting through a java client or a client like Navicat and SqlYog, so it must be specific to the CF datasource setup.
When I connect:
My global variable is:
tx_isolation : repeatable-read
My session variable is:
tx_isolation : read-commited
As you can see, my session does not default to the server setting when I initialize my db connection.
How can I initialize my jdbc connection through CF so that the mysql session variable is correct?
Thanks in advance.
This is on MySQL 5.1.28
Specifically, it's an issue with the tx_isolation variable in MySQL.
When I initialize a database connection, I don't get the right session default. I have determined that this only occurs through CF. I don't get the same problem connecting through a java client or a client like Navicat and SqlYog, so it must be specific to the CF datasource setup.
When I connect:
My global variable is:
tx_isolation : repeatable-read
My session variable is:
tx_isolation : read-commited
As you can see, my session does not default to the server setting when I initialize my db connection.
How can I initialize my jdbc connection through CF so that the mysql session variable is correct?
Thanks in advance.
