Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C68EC6337C2 for ; Wed, 24 Feb 2010 13:00:34 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 69436-01-10 for ; Wed, 24 Feb 2010 17:00:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id A24806339AB for ; Wed, 24 Feb 2010 13:00:12 -0400 (AST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NkKaq-0003xo-5v for pgsql-jdbc@postgresql.org; Wed, 24 Feb 2010 09:00:12 -0800 Message-ID: <27714250.post@talk.nabble.com> Date: Wed, 24 Feb 2010 09:00:12 -0800 (PST) From: niromon To: pgsql-jdbc@postgresql.org Subject: How to change the date in a postgres database via JDBC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: morin.arnaud@gmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/47 X-Sequence-Number: 20334 Hi, I need to build a JUnit test that involes to change the date of the database during the test. I know how to do that with Oracle : ALTER SYSTEM SET fixed_date = '2003-01-01-10:00:00'; But I work with Postgres now and I've found nothing about it on the web. Someone can help me ? have a nice day. Arnaud -- View this message in context: http://old.nabble.com/How-to-change-the-date-in-a-postgres-database-via-JDBC-tp27714250p27714250.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.