Previous Page
_getCacheKey()

Solar_Sql_Adapter_Pgsql
_getDefault()

Next Page
_getTypeSizeScope()

_getDefault()

protected scalar _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.