Patches item #1376898, was opened at 2005-12-09 08:40
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1376898&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Michael Baltaks (mbaltaks)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for svn trunk mssqlconnection.py
Initial Comment:
Connecting to MS SQL Server 2000 sp3a from Windows 2000 using
current 2005-12-09 svn trunk SQLObject via pymssql 0.7.3 I needed to
use this patch:
=============================================
======================
--- mssqlconnection.py (revision 1383)
+++ mssqlconnection.py (working copy)
@@ -70,7 +70,7 @@
cur = con.cursor()
cur.execute('SET ANSI_NULLS ON')
cur.execute("SELECT CAST('12345.21' AS DECIMAL(10, 2))")
- self.decimalSeparator = cur.fetchone()[0][-3]
+ self.decimalSeparator = str(cur.fetchone()[0])[-3]
cur.close()
return con
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-01-06 22:50
Message:
Logged In: YES
user_id=4799
Applied at the revision 1476. Thank you!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1376898&group_id=74338
|