Skip to content

Commit fea351f

Browse files
committed
Update pdo_pgsqlTest.php
1 parent d910245 commit fea351f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/pdo/pdo_pgsqlTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ public function testWhereGrouping()
196196
{
197197
$this->assertTrue($this->object->connect('pgsql:host=' . self::TEST_DB_HOST . ';dbname=' . self::TEST_DB_NAME . ';port=' . self::TEST_DB_PORT, self::TEST_DB_USER, self::TEST_DB_PASSWORD));
198198
$this->object->drop('unit_test_more');
199-
$this->object->query('CREATE TABLE unit_test_more(id integer, test_key varchar(50), active_data tinyint(1), PRIMARY KEY (ID))');
200-
$this->object->insert('unit_test_more', array('id' => '1', 'test_key' => 'testing 1', 'active_data' => 1));
201-
$this->object->insert('unit_test_more', array('id' => '2', 'test_key' => 'testing 2', 'active_data' => 0));
202-
$this->object->insert('unit_test_more', array('id' => '3', 'test_key' => 'testing 3', 'active_data' => 1));
203-
$this->object->insert('unit_test_more', array('id' => '4', 'test_key' => 'testing 4', 'active_data' => 1));
199+
$this->object->query('CREATE TABLE unit_test_more(id serial, test_key varchar(50), active_data integer, PRIMARY KEY (ID))');
200+
$this->object->insert('unit_test_more', array('test_key' => 'testing 1', 'active_data' => 1));
201+
$this->object->insert('unit_test_more', array('test_key' => 'testing 2', 'active_data' => 0));
202+
$this->object->insert('unit_test_more', array('test_key' => 'testing 3', 'active_data' => 1));
203+
$this->object->insert('unit_test_more', array('test_key' => 'testing 4', 'active_data' => 1));
204204

205205
$result = $this->object->selecting('unit_test_more', '*', where(eq('active_data', 1), grouping(like('test_key', '%1%', _OR), like('test_key', '%3%'))));
206206
$i = 1;

0 commit comments

Comments
 (0)