X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FQ-Branch.git;a=blobdiff_plain;f=lib%2FSQL%2FAbstract%2FReference.pm;h=67567ccf178971f5eab3c9b4da20ca20930f0ade;hp=ebf3407f67be5c99c86324ccf3b453ae52fc8df5;hb=cc230faadb608351c7b6149b2b906687f8c23687;hpb=a4e17ee56d6ae01a34d2c22a67e0f5e81bdfc870 diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index ebf3407..67567cc 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -653,4 +653,21 @@ behaves the same way as the now-directly-supported foo [] +=head2 row + +Expands the elements of the value arrayref: + + # expr + { -row => [ 1, { -ident => 'foo' }, 2, 3 ] } + + # aqt + { -row => [ + { -bind => [ undef, 1 ] }, { -ident => [ 'foo' ] }, + { -bind => [ undef, 2 ] }, { -bind => [ undef, 3 ] }, + ] } + + # query + (?, foo, ?, ?) + [ 1, 2, 3 ] + =cut