projects
/
scpubgit/Q-Branch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
make INSERT SELECT work
[scpubgit/Q-Branch.git]
/
xt
/
clauses.t
diff --git
a/xt/clauses.t
b/xt/clauses.t
index
8b7427f
..
d47e113
100644
(file)
--- a/
xt/clauses.t
+++ b/
xt/clauses.t
@@
-96,4
+96,12
@@
is_same_sql(
q{SELECT x.* FROM (SELECT * FROM y) AS x},
);
+is_same_sql(
+ $sqlac->insert({
+ into => 'foo',
+ values => { -select => { select => '*', from => 'bar' } }
+ }),
+ q{INSERT INTO foo SELECT * FROM bar}
+);
+
done_testing;