mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Add unit tests for insert, update, delete queries
This commit is contained in:
parent
89e4b03265
commit
46afc3551a
4 changed files with 74 additions and 3 deletions
13
tests/_data/dbquery/updateTest.xml
Normal file
13
tests/_data/dbquery/updateTest.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<query id="updateTest" action="update">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="member_srl" var="member_srl" filter="number" default="0" />
|
||||
<column name="voted_count" operation="plus" var="voted_count" filter="number" />
|
||||
<column name="blamed_count" operation="minus" var="blamed_count" filter="number" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue