Error After Post With AutoRefresh + Sequence
Posted: Tue 01 Oct 2013 14:51
I use PostgreSQL.
After TUniQuery.Post, my application show "Refresh Failed. Found 0 Records".
But in my database, the record post normally.
My table:
TUniQuery.SQLInsert
TUniQuery.SQLRefresh
My TUniQuery set roAfterInsert := True and roAfterUpdate := True
In my table, my column ID have a Default value := nextval('funcionario_id_seq'::regclass)
Others tables show the same error, and i don't want use StrictUpdate := False, because in some cases, in Refresh, i use JOINS or VIEWS.
Please, help me.
Thanks !
After TUniQuery.Post, my application show "Refresh Failed. Found 0 Records".
But in my database, the record post normally.
My table:
Code: Select all
CREATE TABLE public.usuario (
id SERIAL,
funcionario VARCHAR(20),
login VARCHAR(100),
CONSTRAINT usuario_pkey PRIMARY KEY(id)
)
Code: Select all
INSERT INTO usuario
(funcionario, login, data_cadastro)
VALUES
(:funcionario, :login, :data_cadastro)
Code: Select all
SELECT funcionario, login, data_cadastro
WHERE
id = :id
In my table, my column ID have a Default value := nextval('funcionario_id_seq'::regclass)
Others tables show the same error, and i don't want use StrictUpdate := False, because in some cases, in Refresh, i use JOINS or VIEWS.
Please, help me.
Thanks !