# File test.rb, line 696
  def test_fetch_smallint()
    if @m.server_version >= 40100 then
      @m.query("create temporary table t (i smallint)")
      @m.query("insert into t values (0),(-1),(32767),(-32768),(65535),(-65535),(65536)")
      @s.prepare("select i from t")
      @s.execute
      assert_equal([0], @s.fetch)
      assert_equal([-1], @s.fetch)
      assert_equal([32767], @s.fetch)
      assert_equal([-32768], @s.fetch)
      assert_equal([32767], @s.fetch)
      assert_equal([-32768], @s.fetch)
    end
  end