From f61bec0566387e269e5ffffda2766b8d05d723c5 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Mon, 16 Jan 2012 21:39:58 -0600 Subject: [PATCH] issue 612, fixed problem with oracle adapter, thanks faridgs --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 63357aac..fdae0e0e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-01-16 21:37:31) stable +Version 1.99.4 (2012-01-16 21:39:52) stable diff --git a/gluon/dal.py b/gluon/dal.py index 19b967ab..e35adff9 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -2120,8 +2120,8 @@ class OracleAdapter(BaseAdapter): self.execute("ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS';") oracle_fix = re.compile("[^']*('[^']*'[^']*)*\:(?PCLOB\('([^']+|'')*'\))") - def execute(self, command): - args = [] + def execute(self, command, args=None): + args = args or [] i = 1 while True: m = self.oracle_fix.match(command)