INSERT with default values (out serial)
Posted: Wed 25 Mar 2009 17:28
Hello,
I have a Query like this:
INSERT INTO log
VALUES
(:PTIMESTAMP1
,:PSERIALV1
,:PDIRIP
,:PMSG);
on a PgQuery on the SQL-text.
But I have two problems.
1)
:PTIMESTAMP parameter (pgtimestamp) is _always_ getting 'Object' as default value. In spite of I am deleting and checking null. Close/Open and again it is there.
2)
:PSERIALV1 parameter (serial), I would like to get what is the sequence number assigned after the pgquery.execute method.
How can I do that ?
Greetings.
I have a Query like this:
INSERT INTO log
VALUES
(:PTIMESTAMP1
,:PSERIALV1
,:PDIRIP
,:PMSG);
on a PgQuery on the SQL-text.
But I have two problems.
1)
:PTIMESTAMP parameter (pgtimestamp) is _always_ getting 'Object' as default value. In spite of I am deleting and checking null. Close/Open and again it is there.
2)
:PSERIALV1 parameter (serial), I would like to get what is the sequence number assigned after the pgquery.execute method.
How can I do that ?
Greetings.