Support for $val === [ {}, $val ] in literal SQL + bind specs
authorBrendan Byrd <Perl@ResonatorSoft.org>
Mon, 10 Dec 2012 17:41:23 +0000 (12:41 -0500)
committerPeter Rabbitson <ribasushi@cpan.org>
Fri, 19 Apr 2013 15:13:11 +0000 (17:13 +0200)
commit1b5ddf236a7911b6686be06602ffd657372523c2
treef89991d5f45a39bb09d438837c76a408ba7e2f35
parentf3c8fa02bf47ac8f69e707dd904735b0c2e82d13
Support for $val === [ {}, $val ] in literal SQL + bind specs

This wraps up the changes started in 0e773352. Now DBIC bind values can
be specified just like the ones for SQL::Abstract as long as no bind
metadata (e.g. datatypes) is needed

Also added an explicit check to catch when a non-scalar non-stringifiable
value is passed without a bind type metadata
Changes
lib/DBIx/Class/ResultSet.pm
lib/DBIx/Class/SQLMaker.pm
lib/DBIx/Class/Storage/DBI.pm
t/sqlmaker/bind_transport.t
t/sqlmaker/limit_dialects/torture.t