Fix #1422 incorrect quoting of expressions in XML queries

This commit is contained in:
Kijin Sung 2020-10-21 23:20:35 +09:00
parent 57b356f5fa
commit 28b3c2ef34
4 changed files with 35 additions and 9 deletions

View file

@ -1,4 +1,4 @@
<query id="selectTest" action="select">
<query id="selectTest1" action="select">
<tables>
<table name="documents" />
</tables>

View file

@ -0,0 +1,12 @@
<query id="selectTest2" action="select">
<tables>
<table name="documents" />
</tables>
<columns>
<column name="readed_count + trackback_count" alias="count" />
</columns>
<conditions>
<condition operation="more" column="voted_count + blamed_count" var="voted_count" notnull="notnull" />
<condition operation="equal" column="LEFT(regdate, 8)" var="date" notnull="notnull" />
</conditions>
</query>