Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7F3B063329F for ; Fri, 19 Feb 2010 21:21:44 -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 47129-02 for ; Sat, 20 Feb 2010 01:21:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f180.google.com (mail-px0-f180.google.com [209.85.216.180]) by mail.postgresql.org (Postfix) with ESMTP id ACEE2633162 for ; Fri, 19 Feb 2010 21:21:33 -0400 (AST) Received: by pxi10 with SMTP id 10so444284pxi.13 for ; Fri, 19 Feb 2010 17:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=Ashr+0mBH8UFnzYaqpaXHvdOKGGPZslBfVoyFN0VXw0=; b=KzSGpUWVdHUbmJyoK2IyAqyblFtTwHcBIbS3G3yLz/+eqJlYMZI800qFf98CQ9TiVi 65tZlRuyOycdTK7F7I9xXwwPXHEY7Q7Es0sX7KLns5tp5y9oMKUYJbS/lD3mGbG1Xr6Z zYu0QI3h74IW7MaSB3xRPElQz4JVxI1v9ydGc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=d7kSUO/CGntcWThpHnvmaLD61FVfJ6BJnyDTEv89132ZVLJrUKUmM1sjKncEQLNCQc abHpoZxMnicvAkOXvQO44P71sVFUjkWYlrol/oFWiDdLDeNTvbrgAiPqoTFz9ZRcsyqG 2I1uOpHO7/rLlcnES9xNDrhZ3jEIcBJ575Z3s= MIME-Version: 1.0 Received: by 10.142.59.21 with SMTP id h21mr2283124wfa.182.1266628890762; Fri, 19 Feb 2010 17:21:30 -0800 (PST) In-Reply-To: References: <1e11c2271002171814i704d31f4oca1d819dc5a02103@mail.gmail.com> <1e11c2271002181327g52545a34u6a91c5b17cd1fdfd@mail.gmail.com> Date: Fri, 19 Feb 2010 20:21:30 -0500 X-Google-Sender-Auth: 0a8040f1e18d9227 Message-ID: <1e11c2271002191721hbce2124r189dbecebe78bcd@mail.gmail.com> Subject: Re: Column is of type date but expression is of type text From: list_usr@spacebox.net To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.995 tagged_above=-10 required=5 tests=AWL=0.604, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/35 X-Sequence-Number: 20322 Re: version, good question - I have both postgresql-8.4-701.jdbc3.jar and postgresql-8.4-701.jdbc4.jar in my Apache Tomcat 5.5 common/lib directory. Would that cause a problem? I'm using PostgreSQL 8.4. Java 1.6. Your example code worked with both jdbc3 and jdbc4, but my code still isn't working. I thought it might have to do with the way I instantiate the date, but I tried that in your example code and it worked fine: SimpleDateFormat format =3D new SimpleDateFormat("yyyy-MM-dd"); birthdate.setTime(format.parse(request.getParameter("birthdate")).getTime()= ); // getParameter("birthdate") would return "1978-02-13" for example In my app the PostgreSQL logs show the birthdate parameter as "1978-02-13 -04:00:00", with the same code in your test program the time is omitted. Would that make a difference? On Thu, Feb 18, 2010 at 5:11 PM, Kris Jurka wrote: > > > On Thu, 18 Feb 2010, list_usr@spacebox.net wrote: > >> Here is the stored procedure in question: > > The attached testcase works fine for me. =A0What driver and server versio= ns do > you have? > >> >> As an aside, how do most people name their IN parameters so as not to >> have them conflict with actual column names? >> > > Some people prefix them with v_ to indicate that they are variables. > > Kris Jurka