Author: tack
Date: Sat Apr 22 00:57:12 2006
New Revision: 1445

Modified:
   trunk/base/src/db.py

Log:
Also coerge string of digits to numeric type for limit kwarg.


Modified: trunk/base/src/db.py
==============================================================================
--- trunk/base/src/db.py        (original)
+++ trunk/base/src/db.py        Sat Apr 22 00:57:12 2006
@@ -847,6 +847,9 @@
                 query_values.extend(values)
             
             if result_limit != None:
+                # Coerce string of digits into integer type
+                if isinstance(result_limit, basestring) and 
result_limit.isdigit():
+                    result_limit = int(result_limit)
                 q.append(" LIMIT %d" % result_limit)
 
             q = " ".join(q)


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to