Return-Path: X-Original-To: apmail-empire-db-user-archive@www.apache.org Delivered-To: apmail-empire-db-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 738E5EE8D for ; Thu, 28 Feb 2013 10:27:46 +0000 (UTC) Received: (qmail 78351 invoked by uid 500); 28 Feb 2013 10:27:46 -0000 Delivered-To: apmail-empire-db-user-archive@empire-db.apache.org Received: (qmail 78318 invoked by uid 500); 28 Feb 2013 10:27:45 -0000 Mailing-List: contact user-help@empire-db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@empire-db.apache.org Delivered-To: mailing list user@empire-db.apache.org Received: (qmail 78288 invoked by uid 99); 28 Feb 2013 10:27:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 10:27:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.94.44.224] (HELO ironport1.embl.de) (194.94.44.224) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 10:27:36 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAGwvL1EKCwVl/2dsb2JhbABFv0+CZYEQc4IfAQEFMgEFGyURCxgJFg8JAwIBAgFFEwgBAcoGjxsWgyoDlkGGGY1a X-IPAS-Result: AqAEAGwvL1EKCwVl/2dsb2JhbABFv0+CZYEQc4IfAQEFMgEFGyURCxgJFg8JAwIBAgFFEwgBAcoGjxsWgyoDlkGGGY1a X-IronPort-AV: E=Sophos;i="4.84,754,1355094000"; d="scan'208";a="12983620" Received: from lxmail01-vm.embl.de (HELO mail.embl.de) ([10.11.5.101]) by ironport1.embl.de with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Feb 2013 11:27:16 +0100 Received: (qmail 19854 invoked by uid 107); 28 Feb 2013 10:27:16 -0000 Received: from unknown (HELO ?10.11.108.88?) (becam@10.11.108.88) by lxmail01-vm.embl.de with ESMTPA; 28 Feb 2013 10:27:16 -0000 Message-ID: <512F3103.1090700@embl.de> Date: Thu, 28 Feb 2013 11:27:15 +0100 From: Alain Becam Organization: EMBL User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: user@empire-db.apache.org Subject: Re: re Strange problem with Date while inserting References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hallo Rainer, We are using Oracle 11g, and so the oracle driver within EmpireDB. As far as I know the jdbc driver (ojdbc6, through C3P0) does not really matter, as the problem happens during the construction of the sql, so purely within my application and EmpireDB. //Alain On 28/02/2013 09:24, Rainer D�bele wrote: > Hallo Alain, > > if you do a lot of inserts like that, then it would be wise to use prepared statements. > Not only will they probably solve your problem but they should also be considerably faster. > > You can simply enable prepared Statements (DBDatabase.setPreparedStatementsEnabled(true)). > > But of course it seems to be a bug that has got to be found. > Please let me know which DBMS and database driver you are using. > > And - if possible - let us know, if the prepared statement approach worked for you. > > Regards > Rainer >