Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
[do_mysql] Set sql_auto_is_null and sql_mode
Browse files Browse the repository at this point in the history
* Use same session variables as C driver.
* Session should use ANSI mode, which should also
  obviate the need for additional sanitization of
  quotation marks in previous commit 3cd69b3.

[#852 state:resolved]

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
  • Loading branch information
myabc committed Jun 27, 2009
1 parent 91db076 commit 0603626
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -61,6 +61,7 @@ public boolean supportsCalendarsInJDBCPreparedStatement() {
public Properties getDefaultConnectionProperties() {
Properties props = new Properties();
props.put("useUnicode", "yes");
props.put("sessionVariables", "sql_auto_is_null=0,sql_mode='ANSI,NO_AUTO_VALUE_ON_ZERO,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL'");
return props;
}

Expand Down

0 comments on commit 0603626

Please sign in to comment.