Class TC_MysqlStmt
In: test.rb
Parent: Test::Unit::TestCase

Methods

Public Instance methods

[Source]

     # File test.rb, line 378
378:   def setup()
379:     @host, @user, @pass, db, port, sock, flag = ARGV
380:     @db = db || "test"
381:     @port = port.to_i
382:     @sock = sock.nil? || sock.empty? ? nil : sock
383:     @flag = flag.to_i
384:     @m = Mysql.new(@host, @user, @pass, @db, @port, @sock, @flag)
385:   end

[Source]

     # File test.rb, line 386
386:   def teardown()
387:   end

[Source]

     # File test.rb, line 389
389:   def test_init()
390:     if @m.server_version >= 40100 then
391:       s = @m.stmt_init()
392:       assert_equal(Mysql::Stmt, s.class)
393:       s.close
394:     end
395:   end

[Source]

     # File test.rb, line 397
397:   def test_prepare()
398:     if @m.server_version >= 40100 then
399:       s = @m.prepare("select 1")
400:       assert_equal(Mysql::Stmt, s.class)
401:       s.close
402:     end
403:   end

[Validate]