Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 66492 invoked from network); 15 Mar 2009 19:36:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2009 19:36:29 -0000 Received: (qmail 45363 invoked by uid 500); 15 Mar 2009 19:36:28 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 45283 invoked by uid 500); 15 Mar 2009 19:36:28 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 45271 invoked by uid 99); 15 Mar 2009 19:36:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2009 12:36:28 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2009 19:36:19 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 3CD672F1821 for ; Sun, 15 Mar 2009 15:35:59 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 15 Mar 2009 15:35:59 -0400 X-Sasl-enc: /l1fb3LjDC5F/LXzCDsCx3gUD9+K7KFrRJmXff+ZZqP+ 1237145758 Received: from danfabulich.rf.lan (adsl-75-15-23-182.dsl.pltn13.sbcglobal.net [75.15.23.182]) by mail.messagingengine.com (Postfix) with ESMTPSA id AEA8152789 for ; Sun, 15 Mar 2009 15:35:58 -0400 (EDT) Date: Sun, 15 Mar 2009 12:36:08 -0700 (Pacific Daylight Time) From: Dan Fabulich To: Commons Developers List Subject: Re: [VOTE] Release of DbUtils 1.2 RC3 In-Reply-To: <25aac9fc0903151219j75a4660fkf40a54a846ade750@mail.gmail.com> Message-ID: References: <25aac9fc0903151219j75a4660fkf40a54a846ade750@mail.gmail.com> User-Agent: Alpine 2.00 (WNT 1167 2008-08-23) X-X-Sender: dfabulich@warpmail.net@mail.messagingengine.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org sebb wrote: > On 15/03/2009, Dan Fabulich wrote: >> PLEASE TEST THIS RELEASE WITH A REAL DATABASE! >> >> Although this project has reasonable unit tests, it has no integration >> tests with any actual databases; it is quite possible that the fix for >> DBUTILS-31 has broken something on Oracle, MS SQL Server, Derby, or your >> favorite database. >> >> To verify DBUTILS-31, use QueryRunner to put a null value in a field, e.g. >> with QueryRunner.update. Ideally it would be good to verify putting nulls >> in fields of various types: char, varchar, int, boolean, date, etc. > > Is there a simple ready-made example I could run? Not really, partly because I'm not sure I could write one effectively without access to an Oracle instance (in which case I'd just run the test myself). I think you'd need to start by creating the table: http://www.ss64.com/orasyntax/datatypes.html CREATE TABLE dbutilstest ( varchar2_column varchar2(50), nvarchar2_column nvarchar2(50), varchar_column varchar(50), char_column char(50), nchar_column char(50), number_column number(9), long_column long, date_column date, timestamp_column timestamp, year_interval_column interval year to month, day_interval_column interval day to second, raw_column raw(50), long_raw_column long_raw(50), rowid_column rowid, urowid_column urowid, clob_column clob, nclob_column nclob, blob_column blob, bfile_column bfile, xmltype_column xmltype ); (am I missing any important column types?) Then you could do something like: QueryRunner.update("insert into dbutilstest values(?, ?, ?, ?, ?, ?,"+ + "?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?", new Object[20]); I can try to answer further questions if this isn't enough... -Dan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org