You are here

public function SchemaTestDatabaseConnection::queryRange in Schema 7

Same name and namespace in other branches
  1. 8 tests/schema_test/SchemaTestDatabaseConnection.php \SchemaTestDatabaseConnection::queryRange()

Runs a limited-range query on this database object.

Use this as a substitute for ->query() when a subset of the query is to be returned. User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks.

Parameters

$query: A string containing an SQL query.

$args: An array of values to substitute into the query at placeholder markers.

$from: The first result row to return.

$count: The maximum number of result rows to return.

$options: An array of options on the query.

Return value

DatabaseStatementInterface A database query result resource, or NULL if the query was not executed correctly.

Overrides DatabaseConnection::queryRange

File

tests/schema_test/SchemaTestDatabaseConnection.php, line 14
Defines SchemaTestDatabaseConnection.

Class

SchemaTestDatabaseConnection
@file Defines SchemaTestDatabaseConnection.

Code

public function queryRange($query, $from, $count, array $args = array(), array $options = array()) {
  return NULL;
}