Commit graph

48 commits

Author SHA1 Message Date
Min-Soo Kim
a641b3103a is_countable?! 2020-06-07 22:56:21 +09:00
conory
33e44b8708 서브쿼리시 Warning: Invalid argument supplied for foreach() 오류 수정 2018-10-08 12:31:23 +09:00
conory
7764d88b82 executeQuery의 $arg_columns에서 별표(*)를 사용할 수 있도록 수정 2018-10-06 19:57:51 +09:00
Kijin Sung
20fa55a3fc Support HAVING in XML queries
GROUP BY에 사용되는 <groups> 태그 안에 <having> 태그를 넣을 수 있습니다.
문법은 <conditions> 부분에 적용되는 것과 같습니다.

<query id="queryId" action="select">
    ...
    <groups>
        <group column="document_srl" />
        <having>
            <condition operation="more" column="document_srl" var="myvar" default="0" />
        </having>
    </groups>
    ...
</query>

결과: SELECT ... GROUP BY document_srl HAVING document_srl >= 0
2018-07-03 15:40:52 +09:00
Kijin Sung
6f35f5bafc Fix strict count() behavior in PHP 7.2 2017-12-01 01:42:03 +09:00
Kijin Sung
1a81fd43f3 Convert Object class to BaseObject in core classes 2017-11-27 22:34:28 +09:00
Kijin Sung
15d3ba7ca1 PHP 5 방식의 생성자 (__construct) 사용 2015-04-01 11:30:04 +09:00
bnu
67bd8691d1 #119 board, forum, cafe 모듈 등이 포함되어 있을 때 설치 실패하는 문제 해결. 2013-12-04 20:19:07 +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
misol
f70ce644ce Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-09-25 15:29:32 +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
flyskyko
0f04bd3f92 merge changes of luminous to maserati (~r12676)
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12680 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-02-04 08:09:07 +00:00
ovclas
d870abfc10 issue 2712 fix bug in php4
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@12315 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-27 10:23:23 +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
ucorina
fdcafe536e Issue 1431: xml query click_count error - updated code to use INCR for cubrid and basic updates for the rest
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@12020 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-10-31 10:26:49 +00:00
ucorina
f93d0d289d Issue 1431: xml query click_count error - fixed missing class error, added unit tests
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@12017 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-10-31 09:54:57 +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
ovclas
57a0cc59b1 reverse merge from 1.6.0 (r10156, r10469, r10370, r10369, r10365, r10111, r10110, r10108, r10064, r10063, r10060, r10054, r10052, r10051, r10050, r10049, r10044, r10042, r10041, r10030, r10029, r10024, r10014, r10013)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10715 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-17 05:52:06 +00:00
ovclas
3afad81016 reverse merge rollback
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10714 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-17 02:38:33 +00:00
ovclas
f0aa085c94 reverse merge from 1.6.0 (r10563)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10711 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-17 00:57:29 +00:00
ovclas
75f9ef95cf reverse merge from 1.6.0 (r10013)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10690 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-16 09:21:05 +00:00
ucorina
f867fb2466 Issue 1996: Arguments in subquery are not used when the subquery is part of the select statement
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10681 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-05-15 13:44:55 +00:00
ucorina
1bc92129b0 Issue 1851: Fix PHP Warnings and notices in DB Classes
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10537 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-04-06 09:47:45 +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
69de8be6c1 DB Classes: Add prepared statements support - Bug fix: read arguments from join conditions too.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10481 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-26 18:08:43 +00:00
ucorina
00d2fdf2b1 Reverted rev 10009 and 10010 related to db classes - will commit changes to 1.6.0 branch.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10012 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-01-05 12:08:50 +00:00
ucorina
5594488b23 Added support for INSERT INTO ... SELECT .. statements.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10009 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-01-03 18:10:13 +00:00
lickawtl
055b7e0d68 add priority_hint to mysql
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9485 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-04 16:58:40 +00:00
lickawtl
0b8949cfeb add index hint of using "where" syntax
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9471 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-03 17:28:53 +00:00
ucorina
e1bf4523c7 Moved call to getDBParser from XmlQueryParser.class.php to DB.class.php - because otherwise the XmlQueryParser would have been included even when it was not needed.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9139 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-09 15:05:29 +00:00
ucorina
78db12a858 Improvements for query classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9102 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-07 17:10:40 +00:00
ucorina
bbe95e94ff Update for query column list argument (selecting just certain columns from a table instead of all).
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8709 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-01 14:36:13 +00:00
ucorina
e7fe19db1f Added support for selecting a subset of the columns specified in the XML query file.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8614 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-20 12:34:31 +00:00
ucorina
0c63c32b10 Fixed condition group bug - if there are more condition groups and the first doesn't get displayed, the pipe of the next is printed even though it shouldn't have been.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8607 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-18 15:58:46 +00:00
ucorina
4b85afd9b3 Update to subquery alias.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8564 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-05 16:10:36 +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
lickawtl
5d1eb1c21e new DBClasses for SQLite3 and Firebird databases.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8555 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-30 15:01:45 +00:00
ucorina
0a53ac3e9d First version of uncorellated select subquery.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8539 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-27 17:44:56 +00:00
ucorina
763fc6d56b DBMssql class - working version of XE with SQL Server.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8535 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-23 16:04:46 +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
69bca759f6 Fix for DELETE statement. MySql class refactoring to use new DBClasses.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8449 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-03 14:50:12 +00:00
ucorina
2e122219f1 DBCubrid class: removed duplicate fetch code from pagination, updates to update, delete, insert queries.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8442 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 17:36:31 +00:00
ucorina
d51e931527 Updated DBCubrid pagination to use new Query class.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8439 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 13:19:36 +00:00
ucorina
0cd318fcf5 Removed legacy methods from DB and DBCubrid classes.
Added Query object to hold together query parts. 
Updated structure of query cache file to return Query object. 
Added support for array query arguments - used in the IN clause.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8438 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 13:06:08 +00:00
ucorina
b4ca6896bc Removed code for creating final SELECT statement - this will be moved to db classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8425 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-01 10:19:58 +00:00
mosmartin
64d268ab6b Added a wrapper for queries - select can now be called like: $query->select(..)->from(..)->where(..)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8400 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-27 12:25:43 +00:00