Sha256: 1506d1e8a6cd86ad75270e24b0607803379a07bcfdae1accbe6aab565b7744ed

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

# $Id: test.rb,v 1.2 2004/11/17 07:40:03 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("../test/[0-9]*.rb").sort.each do |f|
    f =~ /^..\/test\/\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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-odbc-0.9998 test/utf8/test.rb