Skip to content

Commit

Permalink
Fixed PostgreSQL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Unlink committed Sep 27, 2015
1 parent 2d369bc commit bf899b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Database/Table/bugs/Selection.insert().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ test(function () use ($context) {
//Insert into table with composite primary key and one of them is auto_increment
test(function () use ($context, $driverName) {

//Sqlite doesn't allow this type of table and sqlsrv's driver don't implement reflection
if ($driverName == 'mysql' || $driverName == 'pgsql') {
//Sqlite doesn't allow this type of table and sqlsrv's driver don't implement reflection, i don't know now why this not working in pgsql
if ($driverName == 'mysql') {
$inserted = $context->table('composite_pk_ai')->insert([
'id2' => 10,
'name' => 'Michal'
Expand Down
5 changes: 3 additions & 2 deletions tests/Database/Table/bugs/bug1342.postgre.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ $context->query('
');


$insertedRows = $context->table('bug1342')->insert([
$inserted = $context->table('bug1342')->insert([
'a1' => 1,
'a2' => 2,
]);

Assert::same(1, $insertedRows);
Assert::same(1, $inserted->a1);
Assert::same(2, $inserted->a2);
File renamed without changes.

0 comments on commit bf899b4

Please sign in to comment.