From 44ae220cef411c16a4572e7ef3174a9aaa3216d5 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Fri, 6 May 2016 16:36:36 -0400 Subject: [PATCH] document \[...] form for order_by I am not sure if this is the best way to note that this works, but I had assumed that this list was fairly exhaustive until I tried \[...] and found it worked. This is just one way to indicate that it will work. Any such note may help future users, though. --- lib/SQL/Abstract.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 9741efb0..08784f1d 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -2912,6 +2912,9 @@ or an array of either of the two previous forms. Examples: | \'colA DESC' | ORDER BY colA DESC | + \[ 'FUNC(colA, ?)', $x ] | ORDER BY FUNC(colA, ?) + | /* ...with $x bound to ? */ + | 'colA' | ORDER BY colA | [qw/colA colB/] | ORDER BY colA, colB