From: Björn Lundin <bjorn.lundin@swipnet.se>
To: pgsql-docs@postgresql.org
Subject: Error in programer's guide JDBC chap 23
Date: Sun, 18 Mar 2001 21:23:20 +0100
Message-ID: <01031821232000.01401@della.lundin> (raw)
Hi!
I've found an error (Ithink) in the section JDBC Interface in programmer's
guide. The document has no version, but IU downloaded it from postgreSQL
2-3 moths ago, so it migth be corrected by now.
It's about Loading the Driver , page 207 at the bottom.
says Class.forname("postgresql.Driver");
BUT I think it should be
Class.forName("org.postgresql.Driver").newInstance();
i.e the org is forgotten. At least if you run 7.0.2-7.0.3 on a Mandrake Linux
7.2 system
This I found out by looking at the jar file with an hex editor.
trying what the documentaion said did not work.
Also I wonder if the next page is correct, Connecting to the Database.
It says (describing different types of URLs)
jdbc:postgresql://hostport/database.
Now, shouldn't there be something in between host and port ?
I haven't tried (no network) but it looks akward to me.
Björn Lundin
bjorn.lundin@swipnet.se
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: bjorn.lundin@swipnet.se
Subject: Re: Error in programer's guide JDBC chap 23
In-Reply-To: <01031821232000.01401@della.lundin>
* 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