Re: Urgent J Connector URL Syntax for MySQL ignore-spaces Option
Hi,
I assume you are referring to the sql_mode=IGNORE_SPACE setting, right?
You can set a new sql_mode, per connection, in the Connector/J url by using the connection property 'sessionVariables'. In your case this should do it:
"Driver='com.mysql.jdbc.Driver',URL='jdbc:mysql://localhost:3306/mydb?sessionVariables=sql_mode=IGNORE_SPACE".
Please be aware that this will replace, in the scope of that connection session, any default sql_mode you may have set in server configuration.
Subject
Written By
Posted
Re: Urgent J Connector URL Syntax for MySQL ignore-spaces Option
July 25, 2014 04:55AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.