Commit graph

34 commits

Author SHA1 Message Date
Kijin Sung
3aaa0c60b2 Add sensible operation names to XML query syntax
XML 쿼리 문법에서 사용되는 operation 이름을 상식적으로 개선함

차이점을 이해하기 어려운 excess/more, below/less 조건을 다른 프레임워크에서
흔히 사용하는 gt (greater than), gte (greater than or equal to),
lt (less than), lte (less than or equal to) 라는 이름으로도 쓸 수 있도록 함.
실제 부등호는 XML 태그에 사용되므로 아직은 사용 불가...

not_in은 있는데 not_equal, not_null, not_like는 없는 문제를 개선함.
이제 위의 4가지 모두 언더바(_)를 넣든 안 넣든 동일한 의미로 쓸 수 있음.
2018-06-30 16:01:44 +09:00
Kijin Sung
efa1b603c4 Condition pipe defaults to AND
XML 쿼리 작성시 pipe="and"를 일일이 추가하지 않아도 기본값이 AND가 되도록 함
2018-06-30 15:55:06 +09:00
Kijin Sung
83362034cd Convert all SQL keywords to upper case
대소문자를 섞어서 쓰고 있던 SQL 키워드들을 모두 대문자로 통일
as, and, or, like, desc 등이 소문자였음
2018-06-30 15:42:52 +09:00
Kijin Sung
15d3ba7ca1 PHP 5 방식의 생성자 (__construct) 사용 2015-04-01 11:30:04 +09:00
akasima
bce0a0b6d4 copyright add to php files
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13186 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-08 05:52:51 +00:00
ngleader
dbc18a4f99 change author
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13180 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-07 02:42:42 +00:00
flyskyko
41fdaf00c3 issue 2119. supporting php 5.4. db classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12686 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-02-04 09:36:46 +00:00
ovclas
f1f7d80540 issue 2662 queryparts, condition coding convention
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12214 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-14 06:46:49 +00:00
ovclas
1a7a68efea issue 2109 Fixed a problem in_array function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10832 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-05 00:16:31 +00:00
ucorina
e1ae5aab97 Issue 2114: XML Query 'null' operation does not work
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10831 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-04 09:00:38 +00:00
ucorina
9846eb7375 Issue 2064: Do not show conditions with not supported operations
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10777 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-06-18 12:09:52 +00:00
ucorina
40a2d4a6ed Issue 2064: XML Query - added support for not_in
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10776 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-06-18 12:04:38 +00:00
ovclas
c65e9d3071 adds comments for phpDoc
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10739 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-25 10:14:48 +00:00
ucorina
c2df2f3a45 Issue 1819: CUBRID prepare statement error
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10525 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-04-02 15:36:50 +00:00
ucorina
2ceea18a77 Added support for CUBRID 8.4.1. "RLIKE" statement.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10070 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-02-02 18:22:07 +00:00
ucorina
9ffb1b39a0 Issue 499: query xml > operation 에 and, or, xor 추가 건의
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9799 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-11-03 18:18:25 +00:00
ucorina
84e7cb3e2f Issue 62: xml Query Supported Not Like
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9621 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-12 18:54:31 +00:00
ucorina
33df36e715 Query cache file - added condition to skip null arguments that do not need validation and are not mandatory.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9066 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-06 15:50:30 +00:00
ucorina
ec0bad3f64 Updates to Condition - refactored some methods to save calculated values in private properties, so that the parsing won't execute multiple times.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9064 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-06 13:28:32 +00:00
ucorina
3f8d72b537 Updated Condition query part class to make code more readable and reduce calls to ->hasArgument().
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9035 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-05 17:00:08 +00:00
ucorina
99b5d718e6 Update for IN query - fix for when argument is column name.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8809 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-18 19:10:26 +00:00
ovclas
11b839f1df issue 70 pagination developement in content menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8788 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-17 06:46:15 +00:00
ucorina
39c2c004c2 Prepared statements - if argument is not given as array (eg. for IN clauses) even though it should be, convert it to an array.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8633 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-25 16:47:22 +00:00
ucorina
b3c75ac4db Fixed a few MSSQL bugs - related to array query arguments and increment columns.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8632 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-25 15:35:43 +00:00
ucorina
7de48344cc Fixed select bug - unless default value is explicitly set as empty string, ignore arguments whose value is empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8624 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-22 11:50:08 +00:00
ucorina
19c0ba4964 Fixed failing test for ConditionArgument class.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8603 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-18 12:36:39 +00:00
ucorina
76019a4b2b Started unit tests for condition and argument classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8577 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-07 14:34:56 +00:00
ucorina
1353ade0c2 Added unit tests for correlated subqueries - select, from, where.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8556 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-30 15:36:03 +00:00
ucorina
6f17aa5759 Updated query classes in order to support prepared statements - added support for parameter binding. Added unit tests for mssql select using new prepared statement syntax.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8511 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-20 14:03:27 +00:00
ucorina
b6a1088995 Updated DB classes for supporting prepared statements - SQL string can now be returned with '?' instead of argument values.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8458 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-07 19:01:58 +00:00
ucorina
313bfca8e8 Updated the query parts that work with arguments (conditions, update and insert expressions) to work with QueryArgument objects instead of string values.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8457 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-07 17:18:32 +00:00
mosmartin
4d2d18b53b Fixed condition group bug.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8394 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 14:45:00 +00:00
mosmartin
520300fad1 Updated WHERE clause to ignore expressions when the argument value is not set.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8386 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-20 09:25:59 +00:00
mosmartin
7dbe0626b6 Update new xml query classes with xe 1.5
with improved query argument support and update and delete queries

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8378 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-19 13:06:56 +00:00