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
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
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
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
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
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
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
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
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
lickawtl
e9dca90031
fix Argument and ConditionArgument type
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8563 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-05 15:53:52 +00:00
lickawtl
013ada255d
fix Argument and Condition argument type
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8562 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-05 08:15:27 +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
lickawtl
2c21bc07e9
escape string value
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8523 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-21 11:28:08 +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
d071909cde
Added column type information inside QueryArgument objects.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8451 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-06 09:24:31 +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
mosmartin
abba8761cc
fixed an issue when default argument name is column name
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8391 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 08:42:16 +00:00
mosmartin
d3067703a4
Fixed join condidition bug: if the user specifies the "pipe" attribute of a condition in a join cause, it should be ignored (otherwise the sql string is like INNER JOIN ... ON AND a = b). Fixed order by bug.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8387 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-20 12:24:50 +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