1
# $Id: test.rb,v 1.3 2010/02/18 12:30:43 chw Exp chw $
3
# Execute in ruby-odbc utf8 directory.
5
# ruby test.rb "mysql-DSN" "mysql-user" "mysql-password"
7
# Test creates and deletes table "test" in that DSN.
16
Dir.glob("../test/[0-9]*.rb").sort.each do |f|
17
f =~ /^..\/test\/\d+(.*)\.rb$/
18
print $1 + "."*(20-$1.length)
25
$c.drop_all unless $c.class != ODBC::Database
29
ODBC.connect($dsn, $uid, $pwd).do("drop table test")