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.
In reply to Re: How can I make DBI's prepare() fail? [MySQL]
by Corion
in thread How can I make DBI's prepare() fail? [MySQL]
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |