Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5677D1337C62 for ; Mon, 2 May 2011 13:34:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 75415-03-8 for ; Mon, 2 May 2011 16:33:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CBD511337C7C for ; Mon, 2 May 2011 13:30:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p42GUIln026842; Mon, 2 May 2011 12:30:18 -0400 (EDT) To: Steven Dahlin cc: pgsql-sql@postgresql.org Subject: Re: getting PSQLException Can't infer the SQL type to use with Native Query call In-reply-to: References: Comments: In-reply-to Steven Dahlin message dated "Mon, 02 May 2011 09:17:43 -0600" Date: Mon, 02 May 2011 12:30:18 -0400 Message-ID: <26841.1304353818@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/8 X-Sequence-Number: 35292 Steven Dahlin writes: > In trying to call a postgresql 8.4 stored function I am passing a > class as well as a List (I have to save a master record as well as the > detail records). This is being done with a native query using > EclipseLink 2.1. However, I am getting back a message for the first > item: > PSQLException: Can't infer the SQL type to use for an instance of > com.hwcs.veri.shared.dto.MyClass. Use setObject() with an explicit > Types value to specify the type to use. That looks like a complaint from JDBC, so possibly you'd have better luck asking on pgsql-jdbc. regards, tom lane