projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
428975b
)
Extra stopword (we need to find a way to introduce dialects...)
Peter Rabbitson [Sun, 22 Dec 2013 11:36:59 +0000 (12:36 +0100)]
lib/SQL/Abstract/Tree.pm
patch
|
blob
|
blame
|
history
t/10test.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract/Tree.pm
b/lib/SQL/Abstract/Tree.pm
index
f826ba7
..
519cae4
100644
(file)
--- a/
lib/SQL/Abstract/Tree.pm
+++ b/
lib/SQL/Abstract/Tree.pm
@@
-68,6
+68,7
@@
my @expression_start_keywords = (
'HAVING',
'ORDER \s+ BY',
'SKIP',
+ 'FETCH',
'FIRST',
'LIMIT',
'OFFSET',
diff --git
a/t/10test.t
b/t/10test.t
index
736940c
..
23183a9
100644
(file)
--- a/
t/10test.t
+++ b/
t/10test.t
@@
-773,6
+773,14
@@
my @sql_tests = (
) AND [source] = ? ) )',
],
},
+ {
+ equal => 1,
+ statements => [
+ 'WHERE foo = ? FETCH FIRST 1 ROWS ONLY',
+ 'WHERE ( foo = ? ) FETCH FIRST 1 ROWS ONLY',
+ 'WHERE (( foo = ? )) FETCH FIRST 1 ROWS ONLY',
+ ],
+ },
);
my @bind_tests = (