Commit Graph

243 Commits

Author SHA1 Message Date
Carsten Brandt
92d65ab78b fix issue with postgreSQL and batch inserting boolean values
fixes #4654
2014-08-12 01:43:49 +02:00
Nikitin Vitaly
f1dd83e2a9 Added test that are making sure batchInsert boolean values in PostgreSQL isn't failing with errors
close #4655
2014-08-12 00:51:11 +02:00
Alexander Makarov
b656137541 Added support for arbitrary operators to Query::filterWhere, added support for arbitrary operators to Sphinx extension 2014-08-01 21:11:24 +04:00
Alexander Makarov
c1cf48cf5b Fixes #2315: Any operator now could be used with yii\db\Query::->where() operand format 2014-08-01 11:37:05 +04:00
Qiang Xue
a3e2b94adf Fixes #3611: Refactored query caching. 2014-07-20 20:59:38 -04:00
Qiang Xue
a082fd9140 Added test. 2014-07-12 12:53:12 -04:00
Qiang Xue
65987f62ae test WIP 2014-07-12 10:38:51 -04:00
Alexander Makarov
608e9012fb Adjusted Connection::transaction to provide Connection instance by default instead of transaction instance 2014-07-10 20:50:07 +04:00
Alexander Makarov
56a7ec7618 Passed transaction as callback argument for Connection::transaction() method 2014-07-10 17:57:52 +04:00
Alexander Makarov
a0051820a7 Fixed tests 2014-07-10 17:43:15 +04:00
Ragazzo
e5195937e4 Fixes #3384: Added callback-style transactions 2014-07-10 17:24:10 +04:00
Qiang Xue
09b00c5cd0 Reverted #4098. 2014-06-28 11:59:58 -04:00
Qiang Xue
dfadb6a917 Fixes #4098: yii\db\Query::addSelect() should include * when it is called the first time 2014-06-28 09:46:56 -04:00
Qiang Xue
1b4a9b62cd Fixes #3568: When the primary query sets asArray, it is not respected by the via relational query 2014-06-25 23:35:02 -04:00
Carsten Brandt
df6a9a08fe fixed typo 2014-06-26 02:52:29 +02:00
Carsten Brandt
d4738b03a5 fixed test break 2014-06-26 01:39:10 +02:00
Carsten Brandt
574f67feff fixed test break 2014-06-26 01:35:56 +02:00
Carsten Brandt
cd5bdd90d2 fixed postgres tests 2014-06-25 22:54:39 +02:00
Carsten Brandt
1391253a58 fixed postgres default value parsing 2014-06-25 04:09:03 +02:00
Carsten Brandt
651e6a3feb added support for BIT default values
fixes #422
2014-06-25 03:37:39 +02:00
Carsten Brandt
4f95fcd91f added unit tests for schema detection
fixed some issues with schema detection
2014-06-25 03:09:28 +02:00
Carsten Brandt
cb87d7be84 fixed typo and test break 2014-06-24 08:40:36 +02:00
Carsten Brandt
7a87a13f37 unit test for postgres transaction 2014-06-24 03:14:51 +02:00
Carsten Brandt
cc8a8360cb added unit test and notes about dbms specific settings 2014-06-24 03:11:34 +02:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Carsten Brandt
0208f289c3 fixed test breaks 2014-06-04 19:12:18 +02:00
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
0003b10b02 ElasticSearch tests fix 2014-06-02 18:14:02 +04:00
Alexander Makarov
4624793954 Merge branch 'unlinkAll' of github.com:NmDimas/yii2 into NmDimas-unlinkAll
Conflicts:
	framework/CHANGELOG.md
2014-06-02 17:38:15 +04:00
NmDimas
95d2b29bff Change unit test to Unlink and add test to unlinkAll 2014-06-01 22:40:05 +03:00
Carsten Brandt
c6201fb5ca fixed cubrid test case 2014-05-26 13:43:42 +02:00
Carsten Brandt
d1a3d40014 added test case to acually create cols with virtual type
verify issue #3473
2014-05-26 11:53:06 +02:00
Qiang Xue
3411504508 Revert "Fixed test break."
This reverts commit 70b57766b1.
2014-05-14 11:40:46 -04:00
Qiang Xue
70b57766b1 Fixed test break. 2014-05-14 11:29:48 -04:00
Alexander Makarov
a17e5582cd Marked part of PostgreSQL test as incomplete 2014-05-07 21:25:19 +04:00
Alexander Makarov
5cb243025a Merge branch 'master' 2014-05-07 04:04:49 +04:00
Alexander Makarov
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
Alexander Makarov
48dbde3911 Fixed PostgreSQL test 2014-05-06 19:14:10 +04:00
Alexander Makarov
ca23cd8a2c Implemented throwing \yii\db\IntegrityException on DB integrity errors 2014-05-06 18:26:27 +04:00
Alexander Makarov
b86f5a14f7 #2435 Tests for integrity exception 2014-05-06 16:56:51 +04:00
Carsten Brandt
5c748ddb42 added case insensitve LIKE to PostgresQueryBuilder
fixes #3252

also improved unit tests for querybuilder buildLikeCondition
2014-04-29 12:04:10 +02:00
Alex-Code
80067204c8 test for addSelect method. 2014-04-08 12:11:55 +01:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
581aad8e22 Fixed test break. 2014-04-04 10:25:08 -04:00
Carsten Brandt
1a3accb6cb removed duplicated joins when using joinWith and via relations
fixes #2650
2014-04-04 15:34:19 +02:00
Qiang Xue
0fa19291f1 refactored filterWhere(). 2014-04-02 20:03:42 -04:00
Carsten Brandt
03e208e59d removed wrong test 2014-04-02 21:39:53 +02:00
Carsten Brandt
745c20538c Merge pull request #2885 branch 'query-filter'
* query-filter:
  added CHANGELOG lines
  added tests for redis
  added proper tests for elasticsearch
  removed unnecessary code duplication
  adjusted tests
  typo
  renamed Query::filter() to Query::filterWhere()
  reverted elasticsearch rename of filter
  Adjusted search model code generated by Gii CRUD generator
  Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
  Gii CRUD generator now uses new addFilter method
  Query::filter() adjustments
  fixes #2002
  Added tests for Query::filter()

Conflicts:
	framework/db/QueryTrait.php
2014-04-02 19:33:40 +02:00
Carsten Brandt
c572c23c2f adjusted tests 2014-04-02 18:56:49 +02:00
Carsten Brandt
96f1c4c10b renamed Query::filter() to Query::filterWhere() 2014-04-02 18:48:14 +02:00