Drupal 8  8.0.2
QueryTest Class Reference
Inheritance diagram for QueryTest:

Public Member Functions

 testArraySubstitution ()
 
 testScalarSubstitution ()
 
 testArrayArgumentsSQLInjection ()
 
 testConditionOperatorArgumentsSQLInjection ()
 
 testNumericExpressionSubstitution ()
 
- Public Member Functions inherited from DatabaseTestBase
 ensureSampleDataNull ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DatabaseTestBase
static addSampleData ()
 
- Static Public Attributes inherited from DatabaseTestBase
static $modules = array('database_test')
 
- Protected Member Functions inherited from DatabaseTestBase
 setUp ()
 

Detailed Description

Tests Drupal's extended prepared statement syntax..

Database

Member Function Documentation

testArrayArgumentsSQLInjection ( )

Tests SQL injection via database query array arguments.

References db_query(), and db_select().

Here is the call graph for this function:

testArraySubstitution ( )

Tests that we can pass an array of values directly in the query.

References db_query().

Here is the call graph for this function:

testConditionOperatorArgumentsSQLInjection ( )

Tests SQL injection via condition operator.

References db_insert(), and db_select().

Here is the call graph for this function:

testNumericExpressionSubstitution ( )

Tests numeric query parameter expansion in expressions.

See Also
::getStatement()
http://bugs.php.net/bug.php?id=45259

References db_query().

Here is the call graph for this function:

testScalarSubstitution ( )

Tests that we can not pass a scalar value when an array is expected.

References db_query().

Here is the call graph for this function:


The documentation for this class was generated from the following file: