Skip to content

Commit

Permalink
fix: Set parameters as dates (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocalin authored Aug 29, 2023
1 parent 33781f4 commit 7482362
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
<defaultValueExpression><![CDATA[new Integer (1)]]></defaultValueExpression>
</parameter>
<queryString><![CDATA[WITH RECURSIVE NaturalDays AS (
SELECT '2023-01-01' AS calendarDate
SELECT $P{Fecha inicio} AS calendarDate
UNION ALL
SELECT calendarDate + INTERVAL 1 DAY
FROM NaturalDays
WHERE
calendarDate < '2023-12-31'
calendarDate < $P{Fecha fin}
),
WorkingDays (calendarDate) AS (
SELECT calendarDate FROM NaturalDays WHERE DAYOFWEEK (calendarDate) NOT IN (1, 7)
Expand Down

0 comments on commit 7482362

Please sign in to comment.