public Schema::prepareComment($comment, $length = NULL)
Prepare a table or column comment for database query.
$comment: The comment string to prepare.
$length: Optional upper limit on the returned string length.
The prepared comment.
public function prepareComment($comment, $length = NULL) { // Remove semicolons to avoid triggering multi-statement check. $comment = strtr($comment, [';' => '.']); 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/core!lib!Drupal!Core!Database!Schema.php/function/Schema::prepareComment/8.1.x