Query\AbstractDriver::prepare_query
Simplifies prepared statements for database queries
Signature
public function prepare_query(string
$sql,
array
$data )
Parameters
$sql
— string$data
— array
Returns
- PDOStatement
- | FALSE
Errors/Exceptions
Defined by Interface
Test Coverage
Information
- Coverage: 9/9 Lines (100%)
- Tests: 119
- Passed: 119 (100%)
Tests
- [ PASSED ] — MySQLTest::testPreparedStatements
- [ PASSED ] — MySQLTest::testBadPreparedStatement
- [ PASSED ] — MySQLTest::testPrepareExecute
- [ PASSED ] — MySQLQBTest::testQueryExplain
- [ PASSED ] — MySQLQBTest::testGetWhere
- [ PASSED ] — MySQLQBTest::testHaving
- [ PASSED ] — MySQLQBTest::testOrHaving
- [ PASSED ] — MySQLQBTest::testSelectWhereGet
- [ PASSED ] — MySQLQBTest::testSelectFromGet
- [ PASSED ] — MySQLQBTest::testSelectFromLimitGet
- [ PASSED ] — MySQLQBTest::testSelectWhereGet2
- [ PASSED ] — MySQLQBTest::testGroup
- [ PASSED ] — MySQLQBTest::testOrGroup
- [ PASSED ] — MySQLQBTest::testOrNotGroup
- [ PASSED ] — MySQLQBTest::testGroupCamelCase
- [ PASSED ] — MySQLQBTest::testWhereIn
- [ PASSED ] — MySQLQBTest::testOrWhereIn
- [ PASSED ] — MySQLQBTest::testWhereNotIn
- [ PASSED ] — MySQLQBTest::testOrWhereNotIn
- [ PASSED ] — MySQLQBTest::testOrderBy
- [ PASSED ] — MySQLQBTest::testOrderByRandom
- [ PASSED ] — MySQLQBTest::testGroupBy
- [ PASSED ] — MySQLQBTest::testOrWhere
- [ PASSED ] — MySQLQBTest::testLike
- [ PASSED ] — MySQLQBTest::testOrLike
- [ PASSED ] — MySQLQBTest::testOrNotLike
- [ PASSED ] — MySQLQBTest::testNotLike
- [ PASSED ] — MySQLQBTest::testLikeBefore
- [ PASSED ] — MySQLQBTest::testLikeAfter
- [ PASSED ] — MySQLQBTest::testJoinWithMultipleWhereValues
- [ PASSED ] — MySQLQBTest::testInsert
- [ PASSED ] — MySQLQBTest::testInsertArray
- [ PASSED ] — MySQLQBTest::testInsertBatch
- [ PASSED ] — MySQLQBTest::testUpdate
- [ PASSED ] — MySQLQBTest::testSetArrayUpdate
- [ PASSED ] — MySQLQBTest::testWhereSetUpdate
- [ PASSED ] — MySQLQBTest::testDelete
- [ PASSED ] — MySQLQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — MySQLQBTest::testCountAllResults2
- [ PASSED ] — MySQLQBTest::testBadNumRows
- [ PASSED ] — PgTest::testPreparedStatements
- [ PASSED ] — PgTest::testBadPreparedStatement
- [ PASSED ] — PgTest::testPrepareExecute
- [ PASSED ] — PgSQLQBTest::testQueryExplain
- [ PASSED ] — PgSQLQBTest::testGetWhere
- [ PASSED ] — PgSQLQBTest::testHaving
- [ PASSED ] — PgSQLQBTest::testOrHaving
- [ PASSED ] — PgSQLQBTest::testSelectWhereGet
- [ PASSED ] — PgSQLQBTest::testSelectFromGet
- [ PASSED ] — PgSQLQBTest::testSelectFromLimitGet
- [ PASSED ] — PgSQLQBTest::testSelectWhereGet2
- [ PASSED ] — PgSQLQBTest::testGroup
- [ PASSED ] — PgSQLQBTest::testOrGroup
- [ PASSED ] — PgSQLQBTest::testOrNotGroup
- [ PASSED ] — PgSQLQBTest::testGroupCamelCase
- [ PASSED ] — PgSQLQBTest::testWhereIn
- [ PASSED ] — PgSQLQBTest::testOrWhereIn
- [ PASSED ] — PgSQLQBTest::testWhereNotIn
- [ PASSED ] — PgSQLQBTest::testOrWhereNotIn
- [ PASSED ] — PgSQLQBTest::testOrderBy
- [ PASSED ] — PgSQLQBTest::testOrderByRandom
- [ PASSED ] — PgSQLQBTest::testGroupBy
- [ PASSED ] — PgSQLQBTest::testOrWhere
- [ PASSED ] — PgSQLQBTest::testLike
- [ PASSED ] — PgSQLQBTest::testOrLike
- [ PASSED ] — PgSQLQBTest::testOrNotLike
- [ PASSED ] — PgSQLQBTest::testNotLike
- [ PASSED ] — PgSQLQBTest::testLikeBefore
- [ PASSED ] — PgSQLQBTest::testLikeAfter
- [ PASSED ] — PgSQLQBTest::testJoinWithMultipleWhereValues
- [ PASSED ] — PgSQLQBTest::testInsert
- [ PASSED ] — PgSQLQBTest::testInsertArray
- [ PASSED ] — PgSQLQBTest::testInsertBatch
- [ PASSED ] — PgSQLQBTest::testUpdate
- [ PASSED ] — PgSQLQBTest::testSetArrayUpdate
- [ PASSED ] — PgSQLQBTest::testWhereSetUpdate
- [ PASSED ] — PgSQLQBTest::testDelete
- [ PASSED ] — PgSQLQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — PgSQLQBTest::testCountAllResults2
- [ PASSED ] — PgSQLQBTest::testBadNumRows
- [ PASSED ] — SQLiteTest::testPreparedStatements
- [ PASSED ] — SQLiteTest::testPrepareExecute
- [ PASSED ] — SQLiteQBTest::testQueryExplain
- [ PASSED ] — SQLiteQBTest::testGetWhere
- [ PASSED ] — SQLiteQBTest::testHaving
- [ PASSED ] — SQLiteQBTest::testOrHaving
- [ PASSED ] — SQLiteQBTest::testSelectWhereGet
- [ PASSED ] — SQLiteQBTest::testSelectFromGet
- [ PASSED ] — SQLiteQBTest::testSelectFromLimitGet
- [ PASSED ] — SQLiteQBTest::testSelectWhereGet2
- [ PASSED ] — SQLiteQBTest::testGroup
- [ PASSED ] — SQLiteQBTest::testOrGroup
- [ PASSED ] — SQLiteQBTest::testOrNotGroup
- [ PASSED ] — SQLiteQBTest::testGroupCamelCase
- [ PASSED ] — SQLiteQBTest::testWhereIn
- [ PASSED ] — SQLiteQBTest::testOrWhereIn
- [ PASSED ] — SQLiteQBTest::testWhereNotIn
- [ PASSED ] — SQLiteQBTest::testOrWhereNotIn
- [ PASSED ] — SQLiteQBTest::testOrderBy
- [ PASSED ] — SQLiteQBTest::testOrderByRandom
- [ PASSED ] — SQLiteQBTest::testGroupBy
- [ PASSED ] — SQLiteQBTest::testOrWhere
- [ PASSED ] — SQLiteQBTest::testLike
- [ PASSED ] — SQLiteQBTest::testOrLike
- [ PASSED ] — SQLiteQBTest::testOrNotLike
- [ PASSED ] — SQLiteQBTest::testNotLike
- [ PASSED ] — SQLiteQBTest::testLikeBefore
- [ PASSED ] — SQLiteQBTest::testLikeAfter
- [ PASSED ] — SQLiteQBTest::testJoinWithMultipleWhereValues
- [ PASSED ] — SQLiteQBTest::testInsert
- [ PASSED ] — SQLiteQBTest::testInsertArray
- [ PASSED ] — SQLiteQBTest::testInsertBatch
- [ PASSED ] — SQLiteQBTest::testUpdate
- [ PASSED ] — SQLiteQBTest::testSetArrayUpdate
- [ PASSED ] — SQLiteQBTest::testWhereSetUpdate
- [ PASSED ] — SQLiteQBTest::testDelete
- [ PASSED ] — SQLiteQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — SQLiteQBTest::testCountAllResults2
- [ PASSED ] — SQLiteQBTest::testBadNumRows