From: Joshua Keroes Date: Fri, 15 Jul 2016 21:34:48 +0000 (-0700) Subject: Fix syntax errors in ORDER BY docs (GH#7) X-Git-Tag: v1.82~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c15b4213396b4ae2b73d44adaaaea5be2915db1;p=dbsrgits%2FSQL-Abstract.git Fix syntax errors in ORDER BY docs (GH#7) Missing some } characters. Had to reformat the table to make them fit. Read under -w --- diff --git a/Changes b/Changes index 224fac4..7f25a87 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for SQL::Abstract - Add explicit dependency on Sub::Quote (GH#8) + - Fix syntax errors in ORDER BY docs (GH#7) revision 1.81_01 2017-02-28 ---------------------------- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 5dc55c7..596c589 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -2908,33 +2908,33 @@ column name), a hashref of C<< { -desc => 'col' } >> or C<< { -asc => 'col' } >>, a scalarref, an arrayref-ref, or an arrayref of any of the previous forms. Examples: - Given | Will Generate + Given | Will Generate --------------------------------------------------------------- - | - 'colA' | ORDER BY colA - | - [qw/colA colB/] | ORDER BY colA, colB - | - {-asc => 'colA'} | ORDER BY colA ASC - | - {-desc => 'colB'} | ORDER BY colB DESC - | - ['colA', {-asc => 'colB'}] | ORDER BY colA, colB ASC - | - { -asc => [qw/colA colB/] } | ORDER BY colA ASC, colB ASC - | - \'colA DESC' | ORDER BY colA DESC - | - \[ 'FUNC(colA, ?)', $x ] | ORDER BY FUNC(colA, ?) - | /* ...with $x bound to ? */ - | - [ | - { -asc => 'colA' }, | ORDER BY colA ASC, colB DESC, - { -desc => [qw/colB/], | colC ASC, colD ASC, - { -asc => [qw/colC colD/],| colE DESC, FUNC(colF, ?) - \'colE DESC', | /* ...with $x bound to ? */ - \[ 'FUNC(colF, ?)', $x ], | - ] | + | + 'colA' | ORDER BY colA + | + [qw/colA colB/] | ORDER BY colA, colB + | + {-asc => 'colA'} | ORDER BY colA ASC + | + {-desc => 'colB'} | ORDER BY colB DESC + | + ['colA', {-asc => 'colB'}] | ORDER BY colA, colB ASC + | + { -asc => [qw/colA colB/] } | ORDER BY colA ASC, colB ASC + | + \'colA DESC' | ORDER BY colA DESC + | + \[ 'FUNC(colA, ?)', $x ] | ORDER BY FUNC(colA, ?) + | /* ...with $x bound to ? */ + | + [ | + { -asc => 'colA' }, | ORDER BY colA ASC, colB DESC, + { -desc => [qw/colB/] }, | colC ASC, colD ASC, + { -asc => [qw/colC colD/] },| colE DESC, FUNC(colF, ?) + \'colE DESC', | /* ...with $x bound to ? */ + \[ 'FUNC(colF, ?)', $x ], | + ] | ===============================================================