Commit 56235507 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

alter sql_mode to fix patient search

setting the sql_mode caused an issue with escaped characters. It would
seem I had overwritten an option required for web2py
parent 0933247d
......@@ -111,7 +111,7 @@ use_janrain(auth, filename='private/janrain.key')
# TODO: create a custom adapter ?
if defs.DB_ADDRESS.split(':')[0] == 'mysql':
db.executesql("SET sql_mode='PIPES_AS_CONCAT,NO_BACKSLASH_ESCAPES,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'")
db.executesql("SET sql_mode='PIPES_AS_CONCAT,NO_BACKSLASH_ESCAPES';")
#########################################################################
## Define your tables below for example
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment