mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add some unit tests for DBQueryParser (more to come)
This commit is contained in:
parent
8bb01edf86
commit
10302ea44e
4 changed files with 186 additions and 0 deletions
21
tests/_data/dbquery/selectJoinTest1.xml
Normal file
21
tests/_data/dbquery/selectJoinTest1.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<query id="selectJoinTest1" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
<table name="member" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="member.member_srl" />
|
||||
<column name="COUNT(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="documents.member_srl" var="member.member_srl" />
|
||||
<condition operation="equal" column="documents.member_srl" default="member.member_srl" />
|
||||
<condition operation="in" column="documents.document_srl" var="document_srl_list" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="member.member_srl" />
|
||||
<having>
|
||||
<condition operation="notequal" column="member.member_srl" var="exclude_member_srl" notnull="notnull" />
|
||||
</having>
|
||||
</groups>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue