48 Commits

Author SHA1 Message Date
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
60aa5f3eb9 Redundant checks at yii\db\oci\Schema::insert() and yii\db\pgsql\Schema::insert() removed 2015-04-14 11:59:58 +03:00
4e8ee7b001 Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression 2015-04-13 17:11:00 +03:00
ced423b601 Fixes #8012: Fixed fetching multiple relations between two tables for pgsql 2015-04-09 00:59:56 +03:00
901d640b55 Fixes #7973: Added Schema::getSchemaNames method 2015-04-03 01:03:49 +03:00
9f8ca6b3db Removed join according to https://github.com/yiisoft/yii2/issues/7958#issuecomment-88872600 2015-04-02 16:17:19 +03:00
356d1b98a7 fix fetching pgsql indexes for older server versions 2015-04-02 12:35:24 +02:00
ec7bbe1914 fix fetching pgsql constraints for older server versions 2015-04-02 07:25:38 +02:00
664958548f fix oci\Schema::findConstraints() and pgsql\Schema::findTableNames(); added missing view to oci tests 2015-03-30 23:51:53 +02:00
4d1ca9ff17 Fixes #7831: Add order when fetching database table names and constraints 2015-03-30 22:18:56 +03:00
29304a185a Fixes #7833: Support (materialized) views and foreign tables along normal tables when fetching table schema 2015-03-30 19:01:12 +03:00
48255a446d Fixes #7867: Fixes findUniqueIndexes not to perform any processing on unique index on function for pgsql, Implemented findUniqueIndexes for oci and mssql 2015-03-30 18:01:30 +03:00
5870a74672 Added Schema::DOUBLE to represent ANSI SQL Double Precision 2015-02-25 16:01:37 +03:00
1e5f159f78 override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery 2015-01-31 22:20:41 -05:00
f58d096920 fixes #6792, use a simpler composite in condition implementation on dbs other than pgsql 2015-01-31 22:20:41 -05:00
9eedfd054e Fixed test break. 2014-11-16 12:31:02 -05:00
ab1f32ef76 Fixes #4492: Support PostgreSQL-specific syntax for QueryBuilder::alterColumn() 2014-11-16 10:47:46 -05:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
78b5c7db66 fixed boolean handling for PostgreSQL
- do not allow boolean values for integer columns
- use native boolean type with boolean values
- removed workaround that turned out to be wrong when schema and values
  are used correctly. Workaround resulted from wrong usage of boolean
  values before.

fixes #4672
2014-08-28 11:20:17 +02:00
25bf486b7f save some function calls on AR insert 2014-08-12 18:13:49 +02:00
c6274acf6c ensure postgres boolean values are handled correctly
also fixed an issue with default value loading of bool columns.

fixes #3489, fixes #4085, fixes #3920
related to #4672
2014-08-12 02:19:53 +02:00
92d65ab78b fix issue with postgreSQL and batch inserting boolean values
fixes #4654
2014-08-12 01:43:49 +02:00
20774165bc Fixes #4644: Added \yii\db\Schema::createColumnSchema() to be able to customize column schema used 2014-08-12 00:01:27 +04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
43333d9cad Implemented master balancing. 2014-07-11 22:33:36 -04:00
e67d0b3c39 WIP 2014-07-11 14:01:44 -04:00
ff50f15056 proper quoting of sequence name. 2014-07-10 14:06:47 -04:00
038d5a5375 Fixes #4232: TableSchema::sequenceName for PostgreSQL should remove the enclosing quotes 2014-07-09 17:17:35 -04:00
5d0452b2ae rename ColumnSchema::typecast to phpTypecast 2014-06-27 02:12:59 +02:00
8a70d9fbd1 rename column schema typecast method 2014-06-26 00:11:04 +02:00
6a48f68955 split typecast method into two
one method for fetching data and one for sending to db.

fixes #2287
2014-06-26 00:00:37 +02:00
1391253a58 fixed postgres default value parsing 2014-06-25 04:09:03 +02:00
651e6a3feb added support for BIT default values
fixes #422
2014-06-25 03:37:39 +02:00
458c4a6623 Fix PostgreSQL enumValues
$column->enumValues is set to array[0 =>''] even if $info['enum_values'] is null.
Gii generates always dropDownList in forms.
2014-06-09 12:29:39 +02:00
f23b7ac57e Fixes #3564 2014-05-26 19:12:56 -04:00
18190b7348 fixes #3473, allow precision in pgsql abstract timestamp 2014-05-25 19:20:57 +02:00
6fd25815ba added more types to pgsql schema, better detection
fixes #3578
2014-05-25 10:21:23 +02:00
f5dbd9a084 Fixes #3564: Fixed the bug that primary key columns should not take default values from schema 2014-05-23 10:35:20 -04:00
6e7713ec13 Fixes #3567: Fixed the bug that smallint was treated as string for PostgreSQL 2014-05-23 10:25:16 -04:00
5c748ddb42 added case insensitve LIKE to PostgresQueryBuilder
fixes #3252

also improved unit tests for querybuilder buildLikeCondition
2014-04-29 12:04:10 +02:00
91965fd391 phpdoc formatting issues 2014-04-23 02:55:17 +02:00
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
1ff9dedf60 Fixed getting default value from postgres schema 2014-03-20 13:29:36 +04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
13aa88bc5b Fix for #2087 2014-01-21 09:28:41 -03:00
9b723baa76 Added TableSchema::fullName property 2014-01-16 15:51:14 -05:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00