Received: from relay.norwest.com (relay.Norwest.Com [198.74.26.65]) by hub.org (8.8.8/8.7.5) with SMTP id KAA28153 for ; Fri, 6 Mar 1998 10:42:43 -0500 (EST) Received: (qmail 5223 invoked from network); 6 Mar 1998 15:41:50 -0000 Received: from unknown (HELO m0e3s11.nmb.norwest.com) (162.28.248.40) by 198.74.26.34 with SMTP; 6 Mar 1998 15:41:50 -0000 Received: from exchange.nmb.norwest.com by m0e3s11.nmb.norwest.com with ESMTP; Fri, 6 Mar 1998 09:36:10 -0600 Received: by m1d8.nmb.norwest.com with Internet Mail Service (5.5.1960.3) id ; Fri, 6 Mar 1998 09:42:06 -0600 From: "Schlough, Mark" To: pgsql-interfaces@postgresql.org, java-linux-help@java.blackdown.org, petermount@earthling.net, pmount@maidast.demon.co.uk Subject: More JDBC questions in 6.3 Date: Fri, 6 Mar 1998 09:37:00 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Message-Id: <350017ea0ead004@m0e3s11.nmb.norwest.com> Thanks to everyone who gave me the postmaster -i command. It worked, and accepted commands! :-) ---------my other questions---------------- I am using the book "JDBC Database Access with Java" and after using some of the examples, (available for download from http://www.javasoft.com/products/jdbc/book.html) I run into problems. I'm wondering if these methods are supported by the driver: The questions so far seem to deal with ResultSetMetaData I am having trouble getting it to return the datatypes, such as VARCHAR, INTEGER, FLOAT,.... code snip ----- 8-< ---- ResultSetMetaData rsmd int columns = rsmd.getColumnCount(); for (int i = 1; i<= columns; i++) { int jdbcType = rsmd.getColumnType(i) String name = rsmd.getColumnTypeName(i) System.out.print("Column "+1+" is JDBC type " + jdbcType); System.out.print(", which the DBMS calls " + name); } code snip ----- 8-< ---- the code runs, but I get results like: Column 1 is JDBC type 12. which the DBMS calls null Column 2 is JDBC type 4. which the DBMS calls null Column 3 is JDBC type 8. which the DBMS calls null Column 4 is JDBC type 4. which the DBMS calls null does anyone know if these ResultSetMetaData methods that look at the datatypes are supposed to work, or are they not implemented? If they are supposed to work, could someone help me figure out what I am missing. Thanks in advance Mark