I'm using Spring JDBC + C3P0. I want to set the 'sql_mode' variable to empty string ''.
First I tried to set it in JDBC url:
DataSource dataSource = new DriverManagerDataSource(
"jdbc:mysql://127.0.0.1/test?sessionVariables=sql_mode=''",
"root", "password");
But it's not working.
So I'm wondering whether there's a way to execute some statements right after the connection is acquired, such as "SET sql_mode=''".
Thanks.