Commit graph

1060 commits

Author SHA1 Message Date
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
ovclas
6cd7c0e5ad issue 46 file, communication module ruleset not committed.
comment Validator not committed.
threfore this source commit


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8507 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-20 01:17:39 +00:00
ovclas
b4f4afcc17 issue 46 Validator apply install module.
viewing error message debug


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8506 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-17 09:58:36 +00:00
ovclas
8f7335c776 issue 46 Validator apply communication module.
standalone method apply validator.
Auto Form generation error in Template engine is fixed


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8482 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-15 07:48:45 +00:00
taggon
26c3fce74f Fix a bug related to checking content's length.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8480 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-15 07:40:53 +00:00
ovclas
b17464e1c1 issue 37 Server Side Validator apply core code
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8477 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-14 02:16:44 +00:00
taggon
32d69fdeff Add some localized text.
Related to issue 39.


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8474 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-13 02:35:21 +00:00
taggon
8502d9cae3 issue 18 : Fix a bug for empty error messages
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8471 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-10 02:21:34 +00:00
taggon
7107bc0d77 issue 18 : fix a bug for applying default value
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8470 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-09 06:43:01 +00:00
taggon
c00dba7f82 issue 18 : fix a bug
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8463 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-08 09:02:06 +00:00
taggon
98a643d0c3 Fix a small bug
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8462 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-08 08:14:46 +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
lickawtl
e41c45433e add some unit tests for CUBRID
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8456 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-07 16:21:55 +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
taggon
23453c0aac issue 18 : Done for writing the ruleset compiler
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8454 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-07 09:33:02 +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
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
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
lickawtl
251555245d Change DBParser.class.php to support left and right escape char. This change is required for unit tests.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8441 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 15:34:11 +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
taggon
05cc65433e Use preg_split() insted of deprecated split()
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8435 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 07:56:44 +00:00
taggon
76624b10c8 Admin module use only admin.css (or admin.min.css)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8433 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 05:06:17 +00:00
taggon
1b5b2501c5 issue 19 : supplementary code
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8431 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 03:47:17 +00:00
taggon
44d915491d issue 19 : JS and CSS files path should start from the XE root directory.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8430 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-02 03:36:55 +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
ovclas
3c52744d5b #16 case '<!DOCTYPE', Templete engine parse error.
add exception case '!DOCTYPE'


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8419 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-01 08:32:22 +00:00
ovclas
0678de9512 #19780880 cond attribute in tag, not parsed
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8415 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-06-01 02:38:19 +00:00
ovclas
6e2fb02acd #19790379 added db check in enviroment
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8412 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-31 01:45:08 +00:00
mosmartin
68f068cf88 fix query "limit" tag in other cases than page select
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8409 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-30 13:20:28 +00:00
ovclas
2cca2a7913 #19790379 agreement form added
before install, session handeler not use db


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8405 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-30 09:31:27 +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
mosmartin
0b78e26357 Fix condition/ConditionGroup.class.php when all conditions have no value.
Add page navigation mechanism.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8399 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-27 11:39:45 +00:00
devjin
92332c8ebb merge 1.4.5.7
git-svn-id: http://xe-core.googlecode.com/svn/trunk@8398 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-27 06:03:31 +00:00
mosmartin
750733936b add "limit" navigation control to xml query and db classes
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8395 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-25 11:32:54 +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
c40ccf777f Fixed condition tag bug.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8393 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 09:28:18 +00:00
mosmartin
52c3d503bc Changed code to use dbParser as singleton - instead of passing it in the constructor every time.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8392 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 09:01:00 +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
a8bed44a83 Cleaned up some classes that weren't needed. Removed calls to getValidatorString from tags, since the argument escaping is now done directly in the QueryParser class.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8390 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 08:18:19 +00:00
ovclas
8f3df45a2a #19745697 trash module makem
document, comment module modify, because object in to trash and trash restore to object feature


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8388 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-23 04:48:43 +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
0f61e5d499 Included some missing classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8383 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-19 15:31:47 +00:00
mosmartin
9a2c0a8ff9 fixed an issue when Argument class is required
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8382 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-05-19 14:46:11 +00:00