Boa tarde, pessoal.
Tenho um campo timestamp com default current_timestamp.
Acontece que ao adicionar o primeiro registro, após a conexão, ele pega o
último valor inserido neste campo.
As demais inserções são feitas corretamente. Isso é bug?
Obrigado!
At.te,
Alisson Viegas
Acsiv Sistemas
Olá, Alisson
Como assim? Pega o último registro? E se a tabela estiver vazia?
Qual versão você está usando?
postgres=# CREATE TABLE tab_ex_data(data timestamp default
current_timestamp);
postgres=# INSERT INTO tab_ex_data VALUES (default);
\q
postgres=# INSERT INTO tab_ex_data VALUES