Patches item #1376898, was opened at 2005-12-09 16:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1376898&group_id=74338
|