CURRENTE_DATE

From: "Rossana Ocampos" <rocampos(at)bry-it(dot)com>
To: <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: CURRENTE_DATE
Date: 2024-10-22 11:31:12
Message-ID: 00b001db2475$e6584640$b308d2c0$@bry-it.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello ,

I am new with PostgreSQL and I have a bug. I have created a function that
has an input variable of type date , in case it does not receive value , it
has to assume by default the current date.

I have defined it as follows variable DATE DEFAULT CURRENT_DATE, but I get
the following error.

El error

ERROR: invalid input syntax for type date: "CURRENT_DATE" LINE 1:
...extsupplydate ('1085018'::bigint, '5278'::bigint, 'CURRENT_D... ^ ERROR:
invalid input syntax for type date: "CURRENT_DATE" SQL status: 22007
Characters: 78

Please could you help me, thank you very much.

Rossana

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Colin 't Hart 2024-10-22 15:54:29 Regression in Postgres 17?
Previous Message yudhi s 2024-10-22 05:31:27 Re: Query performance issue