Solar_Sql_Adapter_MysqlReplicated::_getDefault()

protected scalar Solar_Sql_Adapter_MysqlReplicated::_getDefault ( string $default )

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

Inherited from Solar_Sql_Adapter_Mysql.

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