protected Schema::escapeDefaultValue($value)
Return an escaped version of its parameter to be used as a default value on a column.
mixed $value: The value to be escaped (int, float, null or string).
string|int|float The escaped value.
protected function escapeDefaultValue($value) { if (is_null($value)) { return 'NULL'; } return is_string($value) ? $this->connection->quote($value) : $value; }
© 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::escapeDefaultValue/8.1.x