mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
Add subquery unit tests for DBQueryParser
This commit is contained in:
parent
bb94e91fe0
commit
c6cb8f72b5
4 changed files with 105 additions and 2 deletions
19
tests/_data/dbquery/selectSubqueryTest2.xml
Normal file
19
tests/_data/dbquery/selectSubqueryTest2.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<query id="selectSubqueryTest2" action="select">
|
||||
<tables>
|
||||
<table name="member" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="member.*" />
|
||||
<query alias="document_count">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="COUNT(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member.member_srl" default="documents.member_srl" />
|
||||
</conditions>
|
||||
</query>
|
||||
</columns>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue