Commit graph

141 commits

Author SHA1 Message Date
Kijin Sung
237134f64d Fix #1897 incorrect error message when query variable exceeds maxlength 2022-03-11 01:43:26 +09:00
Min-Soo Kim
21c176313f
에디터 컴포넌트 등에서 extravars 항목 중 type이 설정되지 않은 경우에 대한 수정 (#1872)
에디터 컴포넌트 등의 설정 xml 에서 type이 설정되지 않은 경우 `text` 가 기본 값.
https://github.com/rhymix/rhymix/issues/1871
2022-02-04 17:07:22 +09:00
Kijin Sung
a9821b815d Order table creation by foreign key dependency 2022-01-27 21:20:51 +09:00
Kijin Sung
7f6e020d97 PROPERLY fix null value handling in both read and write queries 2022-01-25 14:54:17 +09:00
Kijin Sung
7f5f67992d Revert "Fix incorrect querystring when comparing column against null value"
This reverts commit a6f771c155.
2022-01-25 14:15:08 +09:00
Kijin Sung
a6f771c155 Fix incorrect querystring when comparing column against null value 2022-01-20 16:37:12 +09:00
Kijin Sung
f7146a4791 Fix #1778 support multi-column unique indexes using legacy syntax 2021-08-26 00:44:13 +09:00
Kijin Sung
df9e990fdc Fix fatal error when module.xml contains invalid menu reference
https://xetown.com/questions/1588670
2021-07-03 16:30:39 +09:00
Kijin Sung
6a4d3d912c Fix #1706 support default="null" in XML query parser 2021-06-19 20:26:09 +09:00
devdho
d6d705706c Add ifvar attribute to query condition 2021-06-17 11:24:58 +09:00
Kijin Sung
741a714abd Set standalone attribute to 'auto' if new class syntax is used in module.xml
- 새로 추가된 클래스 문법 사용시 standalone 속성 기본값은 true가 아닌 auto로 지정

- standalone 속성의 의미는 아래와 같음
  - true: 항상 접근 허용 (기존 방식으로 선언한 액션의 기본값)
  - false: mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
  - auto: module 또는 mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
    (즉, false와 비슷하지만 exec_json 함수 등에서 module+act로 호출하는 경우에는
    mid가 없더라도 module만 일치하면 호출할 수 있도록 허용하여 개발 편의를 높임)

- 단, global_route 속성이 있는 경우 standalone 속성 기본값은 true임
  (전역 짧은주소는 mid 없이 호출될 수밖에 없으므로)
2021-04-20 21:45:21 +09:00
Kijin Sung
73695ccdd2 For backward compatibility, allow both GET and POST if an action does not specify method 2021-04-12 22:21:58 +09:00
Kijin Sung
62d9befb0d Support custom classes in module.xml 2021-04-12 21:03:03 +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
60465fb2db Fix various warnings in PHP 8.0 2021-01-28 22:32:56 +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
d7b9e0aa46 Change === to == because size can be a string 2021-01-22 01:10:23 +09:00
Kijin Sung
09a292440c Also restrict the charset if a column is defined as char(1) 2021-01-22 01:05:52 +09:00
Kijin Sung
2cec4ea6b4 Clean up utf8mb4 setting in default table schema 2021-01-22 01:01:58 +09:00
Kijin Sung
f751d59708 Use latin1 charset for ASCII-only columns that need to be short for indexing 2021-01-22 00:51:47 +09:00
Kijin Sung
12ccb356b0
Merge pull request #1566 from mackeyhan/dbquery-patch
Fix 'not in' operation
2021-01-18 16:31:33 +09:00
mackeyhan
e64cbfbb9e
Fix 'not in' operation 2021-01-18 15:18:25 +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
c26325efee Fix #1550 mark counter_site_status table as deleted 2021-01-08 23:54:50 +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
2189ba5917 Remove useless use_prepared_statements option 2021-01-05 23:28:51 +09:00
Kijin Sung
74d2575db7 #1517 보완: 유닛 테스트 결과를 동일하게 유지하면서 일부 로직 최적화 2021-01-02 23:01:27 +09:00
Kijin Sung
a0b324993c #1517 보완: 괄호 안의 첫 글자와 마지막 글자가 잘리는 문제 수정 2021-01-02 22:46:50 +09:00
Min-Soo Kim
f8ed3b49f2
Merge branch 'develop' into db-search-operator 2020-12-27 21:24:02 +09:00
Min-Soo Kim
96fde908ba 정규 표현식 다듬기 2020-12-27 20:58:37 +09:00
Min-Soo Kim
86b8664862 필요 없어진 flag 제거 2020-12-27 20:34:42 +09:00
Min-Soo Kim
21bf8cdaca code refining2 2020-12-27 19:54:28 +09:00
Min-Soo Kim
9e847dadcb code refining! 2020-12-27 19:44:18 +09:00
Min-Soo Kim
1bb569c84b 너무 많은 문제 수정. too much problems 2020-12-26 09:27:05 +09:00
Min-Soo Kim
09def40ee0 따옴표로 묶인 구문도 NOT LIKE 가 가능하도록 수정 2020-12-25 21:55:08 +09:00
Min-Soo Kim
510d1671be 파라미터 escape 목록 수정 2020-12-25 21:31:48 +09:00
Min-Soo Kim
e86b2ec311 따옴표 내의 빼기 기호는 의미를 부여하지 않도록 수정 2020-12-25 18:20:44 +09:00
Min-Soo Kim
8e48abd0db 주석 수정 2020-12-23 10:32:00 +09:00
Min-Soo Kim
b6698eb5e5 Fix input parmameters 2020-12-23 10:17:01 +09:00
Min-Soo Kim
2cb87af723 treat quotation mark2 2020-12-23 09:59:54 +09:00
Min-Soo Kim
46110f0915 Treat quotation mark 2020-12-23 09:54:46 +09:00
Min-Soo Kim
a247ec8335 $params에 기존 값이 유지되도록 수정 2020-12-23 09:40:57 +09:00
Min-Soo Kim
1b80db4652 fix to get the column variable 2020-12-23 09:23:26 +09:00
Min-Soo Kim
a9ff791f4b Update variablebase.php 2020-12-23 09:18:14 +09:00
Kijin Sung
49ea6700b3 Fix warnings in PHP 8.0 2020-12-22 22:42:31 +09:00
Min-Soo Kim
d23c5f7271 @kijin 님 의견에 따라 수정 2020-12-22 18:05:40 +09:00