Sha256: d10a94d98995b10abb771f71239880c5b7fae705ae677c9b6e8cbbf5cca53b16

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

# $Id: test.rb,v 1.4 2015/03/25 10:54:18 chw Exp chw $
#
# Execute in ruby-odbc utf8 directory.
#
#  ruby test.rb "mysql-DSN" "mysql-user" "mysql-password"
#
# Test creates and deletes table "test" in that DSN.

require 'odbc_utf8'

$dsn = ARGV.shift
$uid = ARGV.shift
$pwd = ARGV.shift

begin
  Dir.glob("../[0-9]*.rb").sort.each do |f|
    f =~ /^..\/\d+(.*)\.rb$/
    print $1 + "."*(20-$1.length)
    $stdout.flush
    load f
    print "ok\n"
  end
ensure
  begin
    $c.drop_all unless $c.class != ODBC::Database
  rescue
  end
  begin
    ODBC.connect($dsn, $uid, $pwd).do("drop table test")
  rescue
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-odbc-0.999992 test/utf8/test.rb
ruby-odbc-0.999991 test/utf8/test.rb
ruby-odbc-0.99999 test/utf8/test.rb
ruby-odbc-0.99998 test/utf8/test.rb
ruby-odbc-0.99997 test/utf8/test.rb
ruby-odbc-0.99996 test/utf8/test.rb