diff options
Diffstat (limited to 'ext/pdo_pgsql/tests/bug72294.phpt')
-rw-r--r-- | ext/pdo_pgsql/tests/bug72294.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/pdo_pgsql/tests/bug72294.phpt b/ext/pdo_pgsql/tests/bug72294.phpt index bd5124ff17..6940fa8d1f 100644 --- a/ext/pdo_pgsql/tests/bug72294.phpt +++ b/ext/pdo_pgsql/tests/bug72294.phpt @@ -102,7 +102,7 @@ class PreparedStatementCache //return $pdo->prepare( $sql ); $this->cached_statements[$sql] = $pdo->prepare( $sql ); - return $this->cached_statements[$sql]; + return $this->cached_statements[$sql]; } } @@ -110,29 +110,29 @@ class DatabaseTest extends PHPUnit_Framework_TestCase { public function testIt() { - $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); + $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); - $prepared_statement_cache = new PreparedStatementCache( $pdo ); + $prepared_statement_cache = new PreparedStatementCache( $pdo ); - for( $i = 1; $i <= 300; ++$i ) { - $statement = $prepared_statement_cache->prepare( $pdo, <<<SQL + for( $i = 1; $i <= 300; ++$i ) { + $statement = $prepared_statement_cache->prepare( $pdo, <<<SQL SELECT $i; SQL - ); + ); $statement->execute(); - } + } } public function test_construct() { - $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); + $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); - $pdo->exec( 'CREATE TEMPORARY TABLE temp_table ( test_column INT NOT NULL );' ); + $pdo->exec( 'CREATE TEMPORARY TABLE temp_table ( test_column INT NOT NULL );' ); - $this->cache = new PreparedStatementCache( $pdo ); + $this->cache = new PreparedStatementCache( $pdo ); - $statement = $this->cache->prepare( $pdo, 'SELECT * FROM temp_table WHERE test_column > 0' ); - $statement->execute(); + $statement = $this->cache->prepare( $pdo, 'SELECT * FROM temp_table WHERE test_column > 0' ); + $statement->execute(); } } |