[hamster-applet] fixed breakage caused by me and my optimizations



commit e771a189e0eda6dddf0431315e82dd2962c72a4d
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Apr 21 00:22:33 2009 +0100

    fixed breakage caused by me and my optimizations
---
 hamster/db.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hamster/db.py b/hamster/db.py
index 1a8628b..23db8ff 100644
--- a/hamster/db.py
+++ b/hamster/db.py
@@ -652,6 +652,10 @@ class Storage(hamster.storage.Storage):
         con = self.connection
         cur = con.cursor()
         
+        if type(statement) != list: #we kind of think that we will get list of instructions
+            statement = [statement]
+            params = [params]
+            
         if type(statement) == list:
             for i in range(len(statement)):
                 if hamster.trace_sql:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]