Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 81416 invoked from network); 8 Jul 2004 14:01:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jul 2004 14:01:49 -0000 Received: (qmail 78022 invoked by uid 500); 8 Jul 2004 14:01:41 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 77973 invoked by uid 500); 8 Jul 2004 14:01:41 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 77960 invoked by uid 99); 8 Jul 2004 14:01:41 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_MISC,RCVD_IN_SORBS_SMTP,SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [212.227.126.171] (HELO moutng.kundenserver.de) (212.227.126.171) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 08 Jul 2004 07:01:40 -0700 Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BiZSy-0000QL-00 for commons-user@jakarta.apache.org; Thu, 08 Jul 2004 16:01:36 +0200 Received: from [80.129.13.192] (helo=[192.168.0.161]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1BiZSy-0007Jh-00 for commons-user@jakarta.apache.org; Thu, 08 Jul 2004 16:01:36 +0200 Message-ID: <40ED53BD.4080006@ronald-dauster.de> Date: Thu, 08 Jul 2004 16:01:33 +0200 From: Ronald Dauster User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en, de-de MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [DBUtils] Setting NULL values [was: SQL Server null] References: <20040708130903.72157.qmail@web50406.mail.yahoo.com> In-Reply-To: <20040708130903.72157.qmail@web50406.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:8d9571a48a563d8043b4aa4cb0516948 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N David Graham wrote: >Thanks for the testing! Which of the 4 columns did you try to insert null >into? > All three simultaneously, but for Oracle I've also tried individual columns >In my testing, Oracle worked with INTEGER but maybe it was a > > The problem is with the DATE column, probably because there's no conversion from INTEGER to DATE. The error is ORA-00932 and it's the PreparedStatement.executeUpdate that fails (in contrast to Types.OTHER, where the PreparesStatement.setNull throws an exception). Types.INTEGER works for VARCHAR2 and NUMBER columns. Driver and database are both version 9.2.0.1.0 >different driver version. It looks like we'll have to babysit Oracle and >use VARCHAR. Please let us know the results of SQL Server and Oracle 10. > >David > > Ronald --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org