public function DatabaseSchema::prepareComment

public DatabaseSchema::prepareComment($comment, $length = NULL)

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.

File

includes/database/schema.inc, line 704
Generic Database schema code.

Class

DatabaseSchema

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!schema.inc/function/DatabaseSchema::prepareComment/7.x