[erlang-questions] timestamp for pgsql

Dave Rafkind dave.rafkind@REDACTED
Wed Dec 5 04:08:20 CET 2007


In the current postgresql driver for erlang (I'm using the ejabberd-module
one because that's the one I got to work), how does one specify TIMESTAMP
values?

ie if I do

pgsql:prepare(Db, my_insert, "insert into foo_table (timestamp_column)
values ($1)").

what should I put in the subsequent call to

pgsql:execute(Db, my_insert, [?????])




P.S. I think the Junglerl pgsql driver is broken for prepared statements.



Thanks!
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071204/62e7639d/attachment.htm>


More information about the erlang-questions mailing list