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