in reply to How can I make DBI's prepare() fail? [MySQL]
Either you just replace the method with a failing method:
{ local *DBI::db::prepare = sub { die "In prepare" }; dies_ok my_framework_connect(); }
... or you use a different database driver. DBD::mysql doesn't do anything in ->prepare, but other database drivers may compile the statement then and there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I make DBI's prepare() fail? [MySQL]
by Cody Fendant (Hermit) on Dec 23, 2018 at 10:07 UTC | |
by Corion (Patriarch) on Dec 23, 2018 at 10:48 UTC |