Skip to content

Commit

Permalink
fix tests for postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed Nov 11, 2016
1 parent 8bcd324 commit 71c5000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ function resetSchema() {

$this->exec( "CREATE TABLE dummy (
id $p,
test INTEGER
test INTEGER,
name VARCHAR(30)
)" );

self::$pdo->commit();
Expand Down
10 changes: 5 additions & 5 deletions tests/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,21 +398,21 @@ function testInjection() {
$dop = $this->conn;

$dop->insert( 'dummy', array(
'test' => 'hello?'
'name' => 'hello?'
) )->exec();

$dop->update( 'dummy', array(
'test' => 'hello? ::world'
'name' => 'hello? ::world'
) )->exec();

$dop->query( 'dummy' )
->where( 'test', 'hello?' )
->where( 'test', '::world' )
->where( 'name', 'hello?' )
->where( 'name', '::world' )
->exec();

$dop( '::insert', array(
'insert' => $dop->insert( 'dummy', array(
'test' => 'hello?'
'name' => 'hello?'
) )
) )->exec();

Expand Down

0 comments on commit 71c5000

Please sign in to comment.