From 56235507964dca1b5f82b49d3a501f79cc801204 Mon Sep 17 00:00:00 2001 From: Ryan Herbert Date: Fri, 23 Oct 2020 15:44:22 +0000 Subject: [PATCH] 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 --- server/web2py/applications/vidjil/models/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/web2py/applications/vidjil/models/db.py b/server/web2py/applications/vidjil/models/db.py index a919c5348..76c512def 100644 --- a/server/web2py/applications/vidjil/models/db.py +++ b/server/web2py/applications/vidjil/models/db.py @@ -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 -- GitLab