Postgres::fieldClean PHP Method

fieldClean() public method

Cleans (escapes) an object name (eg. table, field)
public fieldClean ( &$str ) : The
$str The string to clean, by reference
return The cleaned string
    function fieldClean(&$str)
    {
        if ($str === null) {
            return null;
        }
        $str = str_replace('"', '""', $str);
        return $str;
    }
Postgres