public static function formatValue($value, $type) { $value = parent::formatValue($value, $type); if (' ' === $value) { // SQL Anywhere strangely returns empty string as a single space string return ''; } return $value; }
public static function formatValue($value, $type) { if ('int' === $type && '' === $value) { // Postgresql strangely returns "" for null integers return null; } return parent::formatValue($value, $type); }
public static function formatValue($value, $type) { switch (strtolower(strval($type))) { case 'int': case 'integer': if ('' === $value) { // Postgresql strangely returns "" for null integers return null; } } return parent::formatValue($value, $type); }