[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-common/src/datasources/drivers/DBSIG2 Driv...
From: |
Reinhard Mueller |
Subject: |
gnue-common/src/datasources/drivers/DBSIG2 Driv... |
Date: |
Sat, 18 Oct 2003 17:59:44 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-common
Branch:
Changes by: Reinhard Mueller <address@hidden> 03/10/18 17:59:44
Modified files:
src/datasources/drivers/DBSIG2: Driver.py
Log message:
Also quote floating point constants in SQL commands. This fixes
changing a
numeric field from an old value that had a nonzero fractional part.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/datasources/drivers/DBSIG2/Driver.py.diff?tr1=1.79&tr2=1.80&r1=text&r2=text
Patches:
Index: gnue-common/src/datasources/drivers/DBSIG2/Driver.py
diff -c gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.79
gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.80
*** gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.79 Thu Oct 16
18:30:20 2003
--- gnue-common/src/datasources/drivers/DBSIG2/Driver.py Sat Oct 18
17:59:44 2003
***************
*** 258,266 ****
elif type(value) == types.FloatType:
if value==int(value):
! return "%d" % value
else:
! return str(value)
elif type(value) == types.StringType:
--- 258,266 ----
elif type(value) == types.FloatType:
if value==int(value):
! return "'%d'" % value
else:
! return "'" + str (value) + "'"
elif type(value) == types.StringType: