Commit graph

29 commits

Author SHA1 Message Date
Kijin Sung
b8641c3501 Use constants to control alias handling (#1956 보완) 2022-07-03 17:48:52 +09:00
dewekk
ecda6ddcb8 Update 쿼리에서 alias 기본 값 사용 안 함 2022-06-02 17:21:28 +09:00
dewekk
4907e293de
Use alias in Update Query 2022-05-31 10:54:56 +09:00
Kijin Sung
6b6c0eacfc Fix SQL error when list count is 0 2021-02-26 16:25:11 +09:00
Kijin Sung
6b7486e74f Add 'ifvar' attribute to most query elements
XML 쿼리에서 'ifvar' 속성을 사용하여, 특정 변수가 있을 때만 유효한 테이블이나
컬럼, 인덱스 힌트 등을 지정할 수 있도록 합니다. 어떤 변수를 넣는지에 따라
<condition> 뿐 아니라 <table>, <column>, <index_hint? 등의 적용 여부도
XML 쿼리 수정 없이 자유롭게 컨트롤할 수 있게 됩니다.
2021-02-09 21:58:07 +09:00
Kijin Sung
800f323b9c Fix count error when searching by extra_vars
https://xetown.com/questions/1519425
2021-01-31 01:34:56 +09:00
Kijin Sung
957be16a25 Replace all wildcard columns with '1' in count-only subquery #1575 2021-01-29 14:40:28 +09:00
Kijin Sung
9bedd75a37 Wrap count query if there is a subquery column #1575 2021-01-24 11:00:09 +09:00
Kijin Sung
03e5909036 Add ability to configure index hint with variable
See #1560
2021-01-14 00:40:57 +09:00
Kijin Sung
cf1f4f3a3b Fix incorrect handling of subquery in some SELECT DISTINCT queries 2021-01-07 01:05:32 +09:00
Kijin Sung
3f766a937c Fix incorrect handling of auto-generated COUNT(*) queries when there are GROUP BY or DISTINCT clauses 2021-01-07 00:55:43 +09:00
Kijin Sung
a908cd9291 Re-add missing support for index hints in XML query 2020-12-15 22:36:55 +09:00
Kijin Sung
8c161bc28d Various fixes to improve PHP 8.0 compatibility
- XmlParser 클래스가 PHP 내장 클래스가 되어버려서 XeXmlParser로 변경
- 함수나 파라미터의 형태가 맞지 않아서 치명적인 오류 나는 곳 수정
- undefined 변수 및 배열 키 다수 수정 (치명적인 오류는 아님)
- 계속 수정중...
2020-10-31 00:25:26 +09:00
Kijin Sung
28b3c2ef34 Fix #1422 incorrect quoting of expressions in XML queries 2020-10-21 23:20:35 +09:00
Kijin Sung
945c09059a Fix inconsistent handling of empty string in INSERT/UPDATE queries 2020-07-02 16:04:05 +09:00
Kijin Sung
85df901924 Misc fixes for compatibility with existing XML queries and schemas 2020-06-30 14:43:42 +09:00
Kijin Sung
84a7b915b7 Implement the COUNT(*) query for pagination 2020-06-29 21:32:25 +09:00
Kijin Sung
dcbd26e7f2 Reorder and categorize query attributes for easy reference 2020-06-27 01:25:05 +09:00
Kijin Sung
6f0ecd26a7 Support ON DUPLICATE KEY UPDATE (upsert) queries 2020-06-27 00:58:24 +09:00
Kijin Sung
7f8312ee1a Implement INSERT and UPDATE queries using new parser 2020-06-27 00:49:04 +09:00
Kijin Sung
03279788da Implement DELETE queries using new parser 2020-06-27 00:32:23 +09:00
Kijin Sung
a086c93935 Support SELECT DISTINCT queries 2020-06-27 00:08:48 +09:00
Kijin Sung
e3138f7278 Prepare to support INSERT/UPDATE/DELETE queries, too 2020-06-27 00:04:19 +09:00
Kijin Sung
6d251dfbe1 Finish the SELECT query generator 2020-06-26 21:56:25 +09:00
Kijin Sung
bc287b0e0f Parse GROUP BY and HAVING clauses 2020-06-26 21:04:00 +09:00
Kijin Sung
db13d110b8 Finish work on condition parsing 2020-06-26 20:56:32 +09:00
Kijin Sung
6eca8736c1 More work on the query parser 2020-06-26 16:52:41 +09:00
Kijin Sung
b912c623e2 More work on the query parser 2020-06-22 23:43:56 +09:00
Kijin Sung
20025077f7 Create basic structure of XML query 2020-06-22 16:53:44 +09:00