Solar_Sql_Adapter_Mysql::_getDefault()

protected scalar Solar_Sql_Adapter_Mysql::_getDefault ( string $default )

Given a native column SQL default value, finds a PHP literal value.

Parameters

  • (string) $default: The column default SQL value.

Returns

  • (scalar) A literal PHP value.

Description

Given a native column SQL default value, finds a PHP literal value.

SQL NULLs are converted to PHP nulls. Non-literal values (such as keywords and functions) are also returned as null.



Local