1f42b72baa
Fixes #2346 : ActiveQuery used in building sub-query should not need to set FROM clause explicitly.
2014-02-06 10:39:27 -05:00
8e11629a65
Fixes #2160 : SphinxQL does not support OFFSET
...
Improved `QueryBuilder::buildLimit()` to support big numbers
2014-01-29 22:42:56 -05:00
e27c3872ed
doc improvements
2014-01-28 15:17:11 +01:00
d9a85d091a
Fixes #2175 : QueryBuilder will now append UNION statements at the end of the primary SQL
2014-01-27 14:36:23 -05:00
a9286b899c
Update QueryBuilder.php
...
Change <code>array_reduce</code> with anonimous function variant to easy string collection from pieces of unions.
2014-01-23 18:24:54 +03:00
7da3449d09
Update QueryBuilder.php
...
Change buildUnion method to be ready to accept parameters in <code>['all' => $all, 'query' => $query]</code> format for division to "UNION" and "UNION ALL" constructions.
2014-01-23 16:57:34 +03:00
5d3fd930d8
Update QueryBuilder.php
...
Delete some spaces from result string.
2014-01-23 09:05:41 +03:00
1ea895e22b
Update QueryBuilder.php
...
Fixed some errors – syntax with ";" after closure function and also moved building of unions queries into this function.
2014-01-23 08:45:29 +03:00
12cbaf90b5
Update QueryBuilder.php
...
Change using of implode to convert array of queries to union to array_reduce. Result of this changing is that code feel difference between two selects that connects with UNION and two selects that connects with UNION ALL.
2014-01-23 07:47:48 +03:00
5b3fa9f5ba
Fixes #2091 : QueryBuilder::buildInCondition()
fails to handle array not starting with index 0
2014-01-21 08:52:36 -05:00
febce76397
fixed build break and fixed doc about exists/not exists.
2014-01-11 10:17:14 -05:00
7d08a09620
Fixes #1809 : Added support for building "EXISTS" and "NOT EXISTS" query conditions
2014-01-11 08:35:43 -05:00
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
55cc8813c7
Fixes issue #171
2013-05-07 19:31:35 -04:00
684295fe0b
Fixes
2013-05-07 20:11:31 +04:00
48d04fbb8c
!== array() => !empty()
2013-05-07 19:57:27 +04:00
d7df7053e0
=== array() => empty()
2013-05-07 19:51:29 +04:00
15b9f97ca4
Fixed typo in query builder and reverted changes to DbCache.php
2013-04-23 16:48:14 -04:00
906e402ba8
ActiveRecord::update() and ActiveRecord::delete() now returns the number rows affected.
2013-03-31 21:20:42 -04:00
6a2bfae41c
use parameter binding for query builder.
2013-03-29 23:32:34 -04:00
06feccff8b
refactored query builder.
...
finished Sort.
2013-03-06 10:51:33 -05:00
4fdaab3560
updated file header.
2013-03-04 08:03:46 -05:00
54c539dd51
Fixed buildInCondition bug.
2013-02-07 15:46:15 -05:00
7aa80d86f5
refactored execute() and query() methods in db/Command.
2013-02-01 17:18:49 -05:00
a39638515f
Added Command::batchInsert()
2013-02-01 08:42:43 -05:00
abd3d827a2
refactoring.
2013-01-18 10:37:22 -05:00
6ed01e9645
DB cleanup.
2013-01-18 08:35:09 -05:00
8e05e6e62d
changed copyright line.
2013-01-07 11:34:52 -05:00
fe90d4dda0
implemented auto-quoting for DB commands.
2013-01-06 22:41:20 -05:00
2188ece107
refactoring DB
2013-01-05 21:20:13 -05:00
8517ee9e50
reorganized DB classes.
2013-01-05 16:46:53 -05:00