This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BinaryMan32
Recipients BinaryMan32
Date 2010-03-01.02:03:07
SpamBayes Score 5.966765e-10
Marked as misclassified No
Message-id <1267408991.73.0.408537758811.issue8033@psf.upfronthosting.co.za>
In-reply-to
Content
Handling of long integers is broken for arguments to sqlite functions created with the create_function api. Integers passed to a sqlite function are always converted to int instead of long, which produces an incorrect value for integers outside the range of a int32 on a 32 bit machine. These failures cannot be reproduced on a 64 bit machine, since sizeof(long) == sizeof(long long).

I attached a program that demonstrates the failure. This program reports failures on a 32 bit machine, and all tests pass on a 64 bit machine.
History
Date User Action Args
2010-03-01 02:03:11BinaryMan32setrecipients: + BinaryMan32
2010-03-01 02:03:11BinaryMan32setmessageid: <1267408991.73.0.408537758811.issue8033@psf.upfronthosting.co.za>
2010-03-01 02:03:09BinaryMan32linkissue8033 messages
2010-03-01 02:03:09BinaryMan32create