# File test.rb, line 885
  def test_fetch_decimal()
    if (@m.server_version >= 50000 and Mysql.client_version >= 50000) or (@m.server_version >= 40100 and @m.server_version < 50000) then
      @m.query("create temporary table t (i decimal)")
      @m.query("insert into t values (0),(9999999999),(-9999999999),(10000000000),(-10000000000)")
      @s.prepare("select i from t")
      @s.execute
      assert_equal(["0"], @s.fetch)
      assert_equal(["9999999999"], @s.fetch)
      assert_equal(["-9999999999"], @s.fetch)
      if @m.server_version < 50000 then
        assert_equal(["10000000000"], @s.fetch)    # MySQL problem
      else
        assert_equal(["9999999999"], @s.fetch)
      end
      assert_equal(["-9999999999"], @s.fetch)
    end
  end