[issue2540] If HAVE_LONG_LONG is not defined, longval will not be initialized (_sqlite)

Hirokazu Yamamoto report at bugs.python.org
Thu Apr 3 06:02:28 CEST 2008


Hirokazu Yamamoto <ocean-city at users.sourceforge.net> added the comment:

Oh, I forgot this. When I debuged with
#undef HAVE_LONG_LONG
I noticed test_sqlite.py failed with this error message.

======================================================================
ERROR: CheckLargeInt (sqlite3.test.types.SqliteTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\py3k\lib\sqlite3\test\types.py", line 52, in
CheckLargeInt

    self.cur.execute("insert into test(i) values (?)", (num,))
OverflowError: Python int too large to convert to C long

======================================================================
ERROR: CheckLargeInt (sqlite3.test.types.DeclTypesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\py3k\lib\sqlite3\test\types.py", line 146, in
CheckLargeIn
t
    self.cur.execute("insert into test(i) values (?)", (num,))
OverflowError: Python int too large to convert to C long

Maybe some fix for test is needed?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2540>
__________________________________


More information about the Python-bugs-list mailing list