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
833dcfae37
Updated the way DB class files are included.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9034 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-05 14:15:20 +00:00
lickawtl
4f6336d746
fix a bug with multiple DB support
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8899 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-25 15:58:27 +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
ucorina
bb95345fb2
Updated DB classes to support multiple database connection strings - for when replication is used.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8808 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-18 17:55:29 +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
lickawtl
aa694bce26
fix pagination
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8767 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-12 14:17:00 +00:00
ucorina
f3c3adc5d4
Removed a few redundant TODOs in code.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8710 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-01 14:53:12 +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
lickawtl
18d0add0f9
fix pagination
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8704 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-29 16:18:06 +00:00
ucorina
bf2f77fb4d
Moved required includes from DB class method to top of file.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8702 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-29 11:19:47 +00:00
ucorina
abf5a1f5a3
Fix - read table prefix from db_config file instead of always using default "xe_".
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8700 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-29 07:51:15 +00:00
ucorina
c9203dc356
Merged 1.5.0-DB branch into 1.5.0 - added new DB classes.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8697 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-28 15:14:38 +00:00
ucorina
76dc825253
Added some changes that were skipped at the merge in DB.class.php.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8676 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-27 17:54:38 +00:00
taggon
9d76ec0cd3
Fixed a bug for creating database instances
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8670 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-27 02:55:20 +00:00
ucorina
532d8bc21e
Update to pagination properties - value was sent as Object instead of string.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8660 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-26 16:33:30 +00:00
ucorina
f47ea5deac
Included new argument class files.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8659 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-26 14:45:08 +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
lickawtl
6edd5f03a7
fix pagination
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8625 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-22 11:52:02 +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
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
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
flyskyko
61e00415d6
issue 77 Remove PHP 5.3.x deprecated features
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8599 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-07-14 08:18:04 +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
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
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
lickawtl
7f0c67bfae
escape string value
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8524 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-21 11:56:00 +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
lickawtl
32fe8750e9
bug-fix pagination Limit
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8510 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-20 09:25:58 +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
ucorina
d7cf3cb731
Removed extra methods from Firebird, Msssql and SqlLite db classes.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8455 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-07 16:17:36 +00:00
ucorina
57b91e1d3e
Postgres class - removed methods that are no longer needed. Updated to work with new classes.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8452 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-06 15:41:00 +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
9ef9069ba2
Started work on MySql class.
...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8443 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 18:33:50 +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
lickawtl
23e991bec0
Bug fixes:
...
DBCubrid.class.php - remove "WHERE" clause when all conditions are empty
queryargument/QueryArgument.class.php and queryargument/validator/QueryArgumentValidator.class.php - this is for backwords compatibility - there are many xml files that have variable names (var) given with "."
table/TableTag.class.php - autocomplete default table name alias with table name.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8426 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-01 12:51:13 +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