public function DatabaseSchema::prepareComment

Prepare a table or column comment for database query.

Parameters

$comment: The comment string to prepare.

$length: Optional upper limit on the returned string length.

Return value

The prepared comment.

3 calls to DatabaseSchema::prepareComment()
1 method overrides DatabaseSchema::prepareComment()

File

drupal/includes/database/schema.inc, line 707

Class

DatabaseSchema
Base class for database schema definitions.

Code

public function prepareComment($comment, $length = NULL) {
  return $this->connection
    ->quote($comment);
}