Commit graph

64 commits

Author SHA1 Message Date
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
akasima
26427a8967 #862 escapeValue()에서 foreach로 처리되록 수정 2014-07-25 18:27:59 +09:00
khongchi
fb998623ea #162 db query의 입력값 유무 검사 오류 수정 2013-12-10 16:08:38 +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
ba9800ff34 issue 2119. supporting php 5.4. widget and xml classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12697 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-02-05 03:25:47 +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
ucorina
9d9914ff3b Issue 2758: Issue with NULL value on CUBRID when using prepared statements
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@12415 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-12-17 12:30:39 +00:00
ovclas
d5a46e5e90 issue 262 coding convention in classes
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12230 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-15 07:19:11 +00:00
ovclas
2cb9487ba1 issue 2662 coding convention in xml class
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12225 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-15 01:59:10 +00:00
flyskyko
b87dbb55ce issue 2525, fixed a query error on windows
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11576 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-10-04 02:05:52 +00:00
flyskyko
b5f5c6f094 issue 2247 , Remove non utf-8 and user defined area codes
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11212 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-09-12 05:09:28 +00:00
flyskyko
e3dcb48f88 issue 2247, Remove non utf-8 and user defined area codes
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11186 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-09-10 02:46:59 +00:00
devjin
75a5398930 issue 2010 modified the regular expression of email. (add + . ~)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11004 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-08-08 13:20:08 +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
ovclas
ebc5edeec7 add phpDoc comment
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10780 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-06-19 08:53:24 +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
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
f1a80e7bbd Issue 1778: DB Classes: Add prepared statements support- fix for IN clause when value is empty string
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10491 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-28 14:56:44 +00:00
ucorina
d116d633c8 Issue 1677: XML Query - If default value is column name, value should not be wrapped in quotes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10439 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-15 12:41:20 +00:00
chschy
5862244471 issue 1637, fixed a bug, a query result is incorrect when a value variable of condition is null
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10411 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-12 02:51:44 +00:00
ovclas
98ea5e352a issue 1627 if value is array, type cast modify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10377 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-08 01:10:45 +00:00
ucorina
593fee7b9f Issue 1627: SQL Injection vulnerability in insert / update queries
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10371 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-03-07 16:05:37 +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
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
82f117e32b Db Bug fix - skip condition if value is empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9546 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-10 17:00:27 +00:00
ucorina
9890b889ca Db Bug fix - skip condition if value is empty array.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9545 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-10 16:05:24 +00:00
ucorina
8cf88300db Issue 359 - Secret documents's status changed to public.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9498 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-10-05 13:29:37 +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
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
e46231ae96 Fixed "IN" query issue when arguments are strings.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8798 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-17 17:11:34 +00:00
ucorina
da8302fa4a Bug fix for Argument class - added global $lang in validation methods.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8725 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-04 18:05:54 +00:00
ucorina
f64e950463 Bug fix: "Not in" query was not properly displaying arguments.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8724 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-04 17:23:47 +00:00
ucorina
cfc7d32afd Update to query argument naming - so that queries that have the same variable name specified in the XML will not fail.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8658 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-26 14:40:46 +00:00
ucorina
620b18e532 Update to string array arguments - added format with SQLSRV_PHPTYPE_STRING.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8635 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-25 17:33:27 +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
8b9468a165 Update to default value - set it both when value is null or empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8613 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-20 09:54:07 +00:00
ucorina
ff679cc517 Fixed query argument bug - for in operation, if there was only one element, the brackets weren't added. Added unit test for this.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8605 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-18 15:17:49 +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
bf1d72e478 Update to array condition arguments.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8602 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-18 12:25:27 +00:00
ucorina
9606e263e8 Added classes for testing db queries directly on a test database. Fixed a few insert bugs.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8600 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-14 17:00:16 +00:00
ucorina
54ef159878 Added support for addQuotes - escpaes special charcters in query arguments.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8585 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-08 15:10:42 +00:00
lickawtl
652cc1549a fix a bug where empty argument were escaped
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8584 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-08 14:04:50 +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