You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. a = 1000000000000
2. c.execute("insert into bigint_tbl values (?)", a)
3. db.commit()
4. select * from bigint_tbl
What is the expected output? What do you see instead?
Expected output is:
1000000000000
Actual output
-727379968L
What version of the product are you using? On what operating system?
2.1.7, 2.1.8 Solaris 10 x86 (so far)
Please provide any additional information below.
Python 2.6.5 (r265:79063, Nov 23 2010, 04:04:44)
[GCC 4.3.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
9223372036854775807
374:1> select @@VERSION
374:2> go
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1720.0 (X64)
Jun 12 2010 01:34:59
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )
(1 row affected)
Unsurprisingly, the answer is to use 1000000000000L, but it seems that when the
native int is 4 bits, this is unnecessary.
Original issue reported on code.google.com by pedri...@gmail.com on 5 Jan 2011 at 9:05
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
pedri...@gmail.com
on 5 Jan 2011 at 9:05The text was updated successfully, but these errors were encountered: