Fix misleading error on deployment_statements in void ctx
authorPeter Rabbitson <ribasushi@cpan.org>
Wed, 20 Jul 2016 12:13:49 +0000 (14:13 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 20 Jul 2016 12:13:52 +0000 (14:13 +0200)
commita8eaf44b3d65c08780571a811059e4b43b81ef6b
tree3e605f133dcdf31f8345cdd202197bef509cd843
parentcc782be296444e609006f1bf8ea502e6f22a7d8d
Fix misleading error on deployment_statements in void ctx

Due to how Context::Preserve operates the following would result in a
non-sensical error:

perl -MDBIx::Class::Schema -e '
  DBIx::Class::Schema->connect("dbi:SQLite::memory:")->deployment_statements;
  1
'
lib/DBIx/Class.pm
lib/DBIx/Class/Storage/DBI.pm