projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0891ae9
)
subselect in from renders ok
Matt S Trout [Sat, 13 Apr 2019 17:21:52 +0000 (17:21 +0000)]
xt/clauses.t
patch
|
blob
|
blame
|
history
diff --git
a/xt/clauses.t
b/xt/clauses.t
index
450b616
..
8b7427f
100644
(file)
--- a/
xt/clauses.t
+++ b/
xt/clauses.t
@@
-88,4
+88,12
@@
is_same_sql(
q{SELECT x.*, y.* FROM x JOIN y USING (y_id)},
);
+is_same_sql(
+ $sqlac->select({
+ select => 'x.*',
+ from => [ { -select => { select => '*', from => 'y' } }, -as => 'x' ],
+ }),
+ q{SELECT x.* FROM (SELECT * FROM y) AS x},
+);
+
done_testing;