I am getting the following errors when running the test.rb script:
% ruby test.rb -- localhost test test
Started
...............................................................................F...F.....F........................
Finished in 0.156387 seconds.
1) Failure:
test_fetch_mediumint(TC_MysqlStmt2) [test.rb:794]:
<[-1]> expected but was
<[4294967295]>.
2) Failure:
test_fetch_smallint(TC_MysqlStmt2) [test.rb:763]:
<[-1]> expected but was
<[4294967295]>.
3) Failure:
test_fetch_tinyint(TC_MysqlStmt2) [test.rb:732]:
<[-1]> expected but was
<[4294967295]>.
114 tests, 369 assertions, 3 failures, 0 errors
I am guessing that this is related to the compilation warnings I see, and perhaps is due to slicing a 64-bit integer
down to 32 bits somehow. The compiler warnings I see are of the sort:
mysql.c:1762: warning: format ‘%04d’ expects type ‘int’, but argument 3 has type ‘long int’
|