diff --git a/src/Adapters/PgsqlAdapter.php b/src/Adapters/PgsqlAdapter.php index 47e44b1..e2b257f 100644 --- a/src/Adapters/PgsqlAdapter.php +++ b/src/Adapters/PgsqlAdapter.php @@ -17,6 +17,6 @@ public function format(string $column, string $interval): string default => throw new Error('Invalid interval.'), }; - return "to_char({$column}, '{$format}')"; + return "to_char(\"{$column}\", '{$format}')"; } }