I'm having trouble comparing large BIGINT fields in a MySQL database on Windows. I have an SQL query which performs a '>' comparison between a BIGINT field and a literal number value. When I perform this query from within my
Java code I get no results. When I perform the same query from the MySQL command line everything works fine (which is the correct behavior for these numbers). The literal is being passed into my prepared statement using the setLong() method. The numbers I'm dealing with are on the order of 13 digits, so they should fit nicely within the BIGINT structure. But all I can figure is that the number is getting mangled somehow.
It should be noted this same Java code works great on Linux and Mac OS X. It only fails on Windows.
Help?
Details:
Windows XP Pro, SP3
MySQL 5.1