7802393d01
Some checks failed
continuous-integration/drone/push Build is failing
when using distinct cols with FindAndCount, reset statement.ColumnMap will make the counting sql an syntax error, this pr try fix this. is this pr ok for merge? error sql logging: ```sql [SQL] SELECT DISTINCT `Fid` FROM `table_demo` WHERE Fkey = ? [val] [SQL] SELECT count(DISTINCT ) FROM `table_demo` WHERE Fkey = ? [val] ``` after fix: ```sql [SQL] SELECT DISTINCT `Fid` FROM `table_demo` WHERE Fkey = ? [val] [SQL] SELECT count(DISTINCT `Fid`) FROM `table_demo` WHERE Fkey = ? [val] ``` Co-authored-by: finelog <kaicltw@gmail.com> Reviewed-on: #2096 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: finelog <finelog@noreply.gitea.io> Co-committed-by: finelog <finelog@noreply.gitea.io> |
||
---|---|---|
.. | ||
testdata | ||
cache_test.go | ||
engine_dm_test.go | ||
engine_group_test.go | ||
engine_test.go | ||
main_test.go | ||
performance_test.go | ||
processors_test.go | ||
rows_test.go | ||
session_cols_test.go | ||
session_cond_test.go | ||
session_count_test.go | ||
session_delete_test.go | ||
session_exist_test.go | ||
session_find_test.go | ||
session_get_test.go | ||
session_insert_test.go | ||
session_iterate_test.go | ||
session_pk_test.go | ||
session_query_test.go | ||
session_raw_test.go | ||
session_schema_test.go | ||
session_sum_test.go | ||
session_test.go | ||
session_tx_test.go | ||
session_update_test.go | ||
tags_test.go | ||
tests.go | ||
time_test.go | ||
types_null_test.go | ||
types_test.go |