mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Change some other instances of problematic GROUP BY into SELECT DISTINCT
This commit is contained in:
parent
b43fbc0ace
commit
0873b371a1
8 changed files with 17 additions and 45 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<table name="document_declared" />
|
||||
<table name="document_declared_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<columns distinct="distinct">
|
||||
<column name="document_declared_log.document_srl" />
|
||||
<column name="count(*)" alias="declared_count" />
|
||||
<column name="max(document_declared_log.regdate)" alias="latest_declared" />
|
||||
|
|
@ -15,9 +15,6 @@
|
|||
<condition operation="more" column="document_declared.declared_count" default="1" pipe="and" />
|
||||
<condition operation="in" column="document_declared_log.document_srl" var="document_srls" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="document_declared_log.document_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="sort_index" default="latest_declared" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<table name="documents" />
|
||||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<columns distinct="distinct">
|
||||
<column name="documents.*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
|
|
@ -23,9 +23,6 @@
|
|||
<condition operation="more" column="documents.regdate" var="start_regdate" pipe="and" />
|
||||
<condition operation="less" column="documents.regdate" var="end_regdate" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="documents.document_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="sort_index" default="documents.list_order" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<table name="documents" />
|
||||
<table name="document_extra_vars" alias="extra_vars" />
|
||||
</tables>
|
||||
<columns>
|
||||
<columns distinct="distinct">
|
||||
<column name="documents.*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
|
|
@ -16,9 +16,6 @@
|
|||
<condition operation="in" column="documents.status" var="statusList" pipe="and" />
|
||||
<condition operation="like" column="extra_vars.value" var="var_value" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="extra_vars.document_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="sort_index" default="documents.list_order" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<table name="document_extra_vars" alias="ev" />
|
||||
<table name="document_extra_vars" alias="es" />
|
||||
</tables>
|
||||
<columns>
|
||||
<columns distinct="distinct">
|
||||
<column name="d.*" />
|
||||
</columns>
|
||||
<index_hint name="idx_document_list_order" type="use" />
|
||||
|
|
@ -54,9 +54,6 @@
|
|||
<condition operation="equal" column="es.document_srl" default="d.document_srl" pipe="and" />
|
||||
</group>
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="d.document_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="ev.value" default="ev.value" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<table name="documents" />
|
||||
<table name="tags" />
|
||||
</tables>
|
||||
<columns>
|
||||
<columns distinct="distinct">
|
||||
<column name="documents.*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
|
|
@ -22,9 +22,6 @@
|
|||
<condition operation="more" column="documents.regdate" var="start_regdate" pipe="and" />
|
||||
<condition operation="less" column="documents.regdate" var="end_regdate" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="documents.document_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="sort_index" default="documents.list_order" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue