Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBp2L-0007iZ-D4 for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2013 16:44:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VBp2K-00018p-QX for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2013 16:44:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBa9d-0006r3-SC for pgsql-bugs@postgresql.org; Tue, 20 Aug 2013 00:50:37 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBa9a-0001g1-AW for pgsql-bugs@postgresql.org; Tue, 20 Aug 2013 00:50:37 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBa9Y-0000CI-PM for pgsql-bugs@postgresql.org; Tue, 20 Aug 2013 00:50:33 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VBa9T-0004Wt-AG for pgsql-bugs@postgresql.org; Tue, 20 Aug 2013 00:50:27 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8389: JDBC Driver assumes first column to be an integer To: pgsql-bugs@postgresql.org From: ivan.pli@solidit.cl Message-Id: Date: Tue, 20 Aug 2013 00:50:27 +0000 X-Pg-Spam-Score: -4.7 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8389 Logged by: Ivan Pliouchtchai Email address: ivan.pli@solidit.cl PostgreSQL version: 9.2.4 Operating system: Windows 7 Description: PRECONDITION: When having a table with the next columns: content varchar(10) idcontent int primary key ACTION: Persisting a row using the JDBC driver (I used JBoss and hibernate to persist a bean) RESULT: The JDBC driver throws an exception while trying to parse the first column content (a string) as an integer. Anyway the content gets saved to the database. TEMPORARY SOLUTION: Recreating the table with the integer key column as the first column solved the problem. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs