Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id EC8646333C4 for ; Thu, 25 Mar 2010 19:45:34 -0300 (ADT) 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 89832-03 for ; Thu, 25 Mar 2010 22:45:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id F14AC632FF4 for ; Thu, 25 Mar 2010 19:45:20 -0300 (ADT) Received: by vws8 with SMTP id 8so1040767vws.19 for ; Thu, 25 Mar 2010 15:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.47.219 with SMTP id o27mr1971687vcf.189.1269557119147; Thu, 25 Mar 2010 15:45:19 -0700 (PDT) In-Reply-To: References: <7a8b7ba31003251319y391cef47sff3c5ee3bba5eb4c@mail.gmail.com> <895e58dd1003251402t1d2a5ec9j6c3fe6dff87b7a0a@mail.gmail.com> <7a8b7ba31003251443v74fe6df1mc412e0c03ba4cf3c@mail.gmail.com> Date: Thu, 25 Mar 2010 15:45:19 -0700 Message-ID: <7a8b7ba31003251545u69166ae0nde99317ec5bd6b3f@mail.gmail.com> Subject: Re: Problems with semicolon trying to create a trigger function via jdbc From: Collin Peters To: Kris Jurka Cc: Maciek Sakrejda , pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.463 tagged_above=-10 required=5 tests=AWL=0.277, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201003/63 X-Sequence-Number: 20403 On Thu, Mar 25, 2010 at 3:31 PM, Kris Jurka wrote: > > > On Thu, 25 Mar 2010, Collin Peters wrote: > >> I wasn't able to get the DriverManager.getConnection() approach to >> work (still worked in the unit test, but not the running webapp), but >> reverting to the old 'non-dollar' quoting approach worked. >> > > I'd bet you have two different driver versions deployed to your webapp and > you're getting an old version which doesn't understand dollar quotes. > > Try > System.out.println(Class.forName("org.postgresql.Driver").getResource("/org/postgresql/Driver.class")); Hmmm... good idea but the driver versions are the same jar:file:/home/collin/.m2/repository/postgresql/postgresql/8.3-603.jdbc3/postgresql-8.3-603.jdbc3.jar!/org/postgresql/Driver.class jar:file:/home/collin/Code/intouch/trunk2/java/intouch-webapp/target/intouch-webapp/WEB-INF/lib/postgresql-8.3-603.jdbc3.jar!/org/postgresql/Driver.class > > Kris Jurka > >