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.

6 calls to DatabaseSchema::prepareComment()
DatabaseSchema_pgsql::addField in drupal-7.x/includes/database/pgsql/schema.inc
Add a new field to a table.
DatabaseSchema_pgsql::addField in drupal-7.x/includes/database/pgsql/schema.inc
Add a new field to a table.
DatabaseSchema_pgsql::changeField in drupal-7.x/includes/database/pgsql/schema.inc
Change a field definition.
DatabaseSchema_pgsql::changeField in drupal-7.x/includes/database/pgsql/schema.inc
Change a field definition.
DatabaseSchema_pgsql::createTableSql in drupal-7.x/includes/database/pgsql/schema.inc
Generate SQL to create a new table from a Drupal schema definition.

... See full list

1 method overrides DatabaseSchema::prepareComment()
DatabaseSchema_mysql::prepareComment in drupal-7.x/includes/database/mysql/schema.inc
Prepare a table or column comment for database query.

Archivo

drupal-7.x/includes/database/schema.inc, line 701
Generic Database schema code.

Class

DatabaseSchema

Código

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