Package: python-maxdb
Version: 7.5.00.24-3
Severity: important
Tags: patch
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27abi-0.1
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages python-maxdb depends on:
ii python2.3-maxdb 7.5.00.24-3 Python bindings for MaxDB for Pyth
-- no debconf information
The Connection class in sapdb.dbapi module does not set the
date_time_format to be used by the wrapped session but it expects it to
be INTERNAL instead. If the backend database is running another
DATE_TIME_FORMAT (like ISO) all queries with Date, Time or Timestamp
fields will fail. The following patch would set the DATE_TIME_FORMAT to
INTERNAL:
--- dbapi.py 2005-06-28 09:29:13.000000000 +0200
+++ dbapi-new.py 2005-06-28 09:30:13.000000000 +0200
@@ -109,6 +109,8 @@
_connectionLock.acquire ()
self.__connection = wrapCall (sapdb.sql.connect, user, password,
database, host, configString)
+ wrapCall (self.__connection.sql, 'SET FORMAT INTERNAL')
+
finally:
_connectionLock.release ()
if host:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]