#6 Case-sensitive driver name in mod_ruby

open
nobody
None
5
2002-09-01
2002-09-01
Anonymous
No

The following connect
@dbh = DBI.connect("dbi:sqlite:test.db")
fails within mod_ruby with

main.rhtml:53: Insecure operation - require
/usr/lib/ruby/1.6/auto-reload.rb:53:in `require'
/usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:417:in `load_driver'
/usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:411:in `each'
/usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:411:in `load_driver'
/usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:349:in
`_get_full_driver'
/usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:329:in `connect'

Correcting the driver case helps:
@dbh = DBI.connect("dbi:SQLite:test.db")

DBI version: 0.0.16

Discussion


Log in to post a comment.