pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Lloyd Parkes <Lloyd.Parkes@ecs.vuw.ac.nz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Integer is not a subclass of Short
Date: Thu, 29 Jul 2010 19:50:37 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007291950020.10995@leary.csoft.net> (raw)
In-Reply-To: <alpine.BSO.2.00.1007291947300.10995@leary.csoft.net>
References: <1280446120.8031.14.camel@cafe-de-la-rue.ecs.vuw.ac.nz>
	<alpine.BSO.2.00.1007291947300.10995@leary.csoft.net>



On Thu, 29 Jul 2010, Kris Jurka wrote:

> According to my attached testcase getColumnClassName does return Integer.
>

Actually attached now...

Kris Jurka

Attachments:

TestShort.java (text/plain, 523B) download import java.sql.*; public class TestShort { public static void main(String args[]) throws Exception { Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5910/jurka", "jurka", ""); Statement stmt = conn.createStatement(); stmt.execute("CREATE TEMP TABLE shorttest(a smallint)"); ResultSet rs = stmt.executeQuery("SELECT * FROM shorttest"); ResultSetMetaData rsmd = rs.getMetaData(); System.out.println(rsmd.getColumnClassName(1)); stmt.close(); conn.close(); } }

view thread (5+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1007291950020.10995@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1007291950020.10995@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1007291950020.10995@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Lloyd.Parkes@ecs.vuw.ac.nz
  Subject: Re: Integer is not a subclass of Short
  In-Reply-To: <alpine.BSO.2.00.1007291950020.10995@leary.csoft.net>
  References: <1280446120.8031.14.camel@cafe-de-la-rue.ecs.vuw.ac.nz> <alpine.BSO.2.00.1007291947300.10995@leary.csoft.net> <alpine.BSO.2.00.1007291950020.10995@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox