dabo Commit
Revision 5106
Date: 2009-03-01 20:01:52 -0800 (Sun, 01 Mar 2009)
Author: Johnf
Trac: http://trac.dabodev.com/changeset/5106
Changed:
U trunk/vendor/pymssql/pymssql.py
Log:
changed the way the program checks for datatypes
Diff:
Modified: trunk/vendor/pymssql/pymssql.py
===================================================================
--- trunk/vendor/pymssql/pymssql.py 2009-03-02 02:49:01 UTC (rev 5105)
+++ trunk/vendor/pymssql/pymssql.py 2009-03-02 04:01:52 UTC (rev 5106)
@@ -200,9 +200,10 @@
pass
def _quote(x):
- if type(x) == types.StringType:
+ if isinstance(x,basestring):
x = "'" + string.replace(str(x), "'", "''") + "'"
- elif type(x) in (types.IntType, types.LongType, types.FloatType):
+ #elif type(x) in (types.IntType, types.LongType, types.FloatType):
+ elif isinstance(x, (int, long, float)):
pass
elif x is None:
x = 'NULL'
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]