Lines Matching refs:pdo
4 pdo
9 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
14 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
104 public function prepare( $pdo, $sql )
106 //return $pdo->prepare( $sql );
107 $this->cached_statements[$sql] = $pdo->prepare( $sql );
117 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt');
119 $prepared_statement_cache = new PreparedStatementCache( $pdo );
122 $statement = $prepared_statement_cache->prepare( $pdo, <<<SQL
132 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt');
134 $pdo->exec( 'CREATE TEMPORARY TABLE temp_table ( test_column INT NOT NULL );' );
136 $this->cache = new PreparedStatementCache( $pdo );
138 $statement = $this->cache->prepare( $pdo, 'SELECT * FROM temp_table WHERE test_column > 0' );