class TC_MysqlStmt

Public Instance Methods

setup() click to toggle source
# File test.rb, line 413
def setup()
  @host, @user, @pass, db, port, sock, flag = ARGV
  @db = db || "test"
  @port = port.to_i
  @sock = sock.nil? || sock.empty? ? nil : sock
  @flag = flag.to_i
  @m = Mysql.new(@host, @user, @pass, @db, @port, @sock, @flag)
end
teardown() click to toggle source
# File test.rb, line 421
def teardown()
end
test_init() click to toggle source
# File test.rb, line 424
def test_init()
  if @m.server_version >= 40100 then
    s = @m.stmt_init()
    assert_equal(Mysql::Stmt, s.class)
    s.close
  end
end
test_prepare() click to toggle source
# File test.rb, line 432
def test_prepare()
  if @m.server_version >= 40100 then
    s = @m.prepare("select 1")
    assert_equal(Mysql::Stmt, s.class)
    s.close
  end
end