# File test.rb, line 943 def test_fetch_timestamp() if @m.server_version >= 40100 then @m.query("create temporary table t (i timestamp)") @m.query("insert into t values ('1970-01-01 12:00:00'),('2037-12-31 23:59:59')") @s.prepare("select i from t") @s.execute assert_equal([Mysql::Time.new(1970,1,1,12,0,0)], @s.fetch) assert_equal([Mysql::Time.new(2037,12,31,23,59,59)], @s.fetch) end end