X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FAbstract.pm;h=6fb68e9a6b48e68fed421572488b2093d66e610d;hb=5db47f9fe6d06048b35092378a04e3a292d03a19;hp=22594ce72b48d08c6e6c401266ec2b5592f2cc76;hpb=1496d4ce1467676a04bacee2f67e34778990de27;p=scpubgit%2FQ-Branch.git diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 22594ce..6fb68e9 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -161,6 +161,12 @@ sub _insert_ARRAYREF { # just generate values(?,?) part (no list of fields) }, # THINK : anything useful to do with a HASHREF ? + HASHREF => sub { # (nothing, but old SQLA passed it through) + #TODO in SQLA >= 2.0 it will die instead + belch "HASH ref as bind value in insert is not supported"; + push @values, '?'; + push @all_bind, $v; + }, SCALARREF => sub { # literal SQL without bind push @values, $$v;