I would like to insert some unsigned int value using a prepared statement.
setInt() slaps me with a DataTruncation if the second parameter is above 2,147,483,647 (Max Signed Int) although my underlying table can chew up to 4,294,967,295 (Max Unsigned Int)
Is there such a thing as setUnsignedInt()? Should I use setLong() although the table is setup as (INT(10) UNSIGNED)?
Thanks
Typically when you need an unsigned primitive’s headroom in Java you just go to the next tier up in size. In your case, that’s a long.