mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-11 15:48:09 +00:00
adjusted date param
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
WITH params AS (
|
WITH params AS (
|
||||||
SELECT
|
SELECT
|
||||||
NULLIF($1, '')::uuid AS space_id,
|
NULLIF($1, '')::uuid AS space_id,
|
||||||
NULLIF($2, '')::text AS start_month, -- Format: 'MM-YYYY'
|
TO_CHAR(TO_DATE(NULLIF($2, ''), 'DD-MM-YYYY'), 'MM-YYYY') AS start_month,
|
||||||
NULLIF($3, '')::text AS end_month
|
TO_CHAR(TO_DATE(NULLIF($3, ''), 'DD-MM-YYYY'), 'MM-YYYY') AS end_month
|
||||||
)
|
)
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
|
Reference in New Issue
Block a user