# File test.rb, line 1146
  def test_each()
    if @m.server_version >= 40100 then
      @m.query("create temporary table t (i int, c char(255), d datetime)")
      @m.query("insert into t values (1,'abc','19701224235905'),(2,'def','21120903123456'),(3,'123',null)")
      @s.prepare("select * from t")
      @s.execute
      c = 0
      @s.each do |a|
        case c
        when 0
          assert_equal([1,"abc",Mysql::Time.new(1970,12,24,23,59,05)], a)
        when 1
          assert_equal([2,"def",Mysql::Time.new(2112,9,3,12,34,56)], a)
        when 2
          assert_equal([3,"123",nil], a)
        else
          raise
        end
        c += 1
      end
    end
  end