X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D1C82329CF8 for ; Tue, 21 Sep 2004 20:26:24 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53535-08 for ; Tue, 21 Sep 2004 19:26:14 +0000 (GMT) Received: from smtp2.poczta.onet.pl (smtp2.poczta.onet.pl [213.180.130.30]) by svr1.postgresql.org (Postfix) with ESMTP id B4B80329C67 for ; Tue, 21 Sep 2004 20:26:14 +0100 (BST) Received: from bj210.internetdsl.tpnet.pl ([80.53.193.210]:29872 "EHLO pyszny-j.rydnet") by ps2.test.onet.pl with ESMTP id ; Tue, 21 Sep 2004 21:25:50 +0200 Subject: Re: Auto-increment serial (Postgresql JDBC driver w/ From: "Jaroslaw J. Pyszny" To: Kris Jurka Cc: pgsql-jdbc In-Reply-To: References: <1095725344.10857.107.camel@lx.siec> Content-Type: text/plain; charset=iso-8859-2 Message-Id: <1095794747.18680.23.camel@lx.siec> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 (1.4.3-9.1.aur.2) Date: 21 Sep 2004 21:25:48 +0200 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/142 X-Sequence-Number: 11032 W li¶cie z wto, 21-09-2004, godz. 03:50, Kris Jurka pisze: > On Mon, 21 Sep 2004, Jaroslaw J. Pyszny wrote: > > The basic idea looks good to me, but you've made a mistake in the > isAutoIncrement() method. You are using the column number from the > ResultSet to look up the default when you need to actually use that > column's position in the table. In fact it looks like the whole method > body should be moved into the Field class much like the isNullable method > does. This also avoid the contrived hash key value. > > Finally we prefer patches in context diff format (diff -c). Thanks :) I'll try fix it. Jarek -- 8 \\|||// Jarosław J. Pyszny b (o|o) Linux admin/devel ("Vitae,non scholae,discimus") i --\_/-- Linux user: #96704 (http://counter.li.org) t =->computers - let me know if you want to get rid of it <-=