Re: [HACKERS] JDBC problem in the docs

Поиск
Список
Период
Сортировка
Искать
От
Thomas Lockhart
Тема
Re: [HACKERS] JDBC problem in the docs
Дата
в 09:26:24
Msg-id
374AA54F.B1690FEB@alumni.caltech.edu
Список
Дерево обсуждения
JDBC problem in the docs Peter T Mount <peter@retep.org.uk>
> I'm being asked the same question every so often, about the following
> line:
>         Class.forName(postgresql.Driver);
> People are asking why this isn't working. Obviously there should be quotes
> in there, and I'm thinking that they are missing from the docs.
>         Class.forName("postgresql.Driver");

golem> grep -i Class.forName *.sgml
jdbc.sgml:Class.forName() method. For
Postgres, you would use:
jdbc.sgml:Class.forName("postgresql.Driver");

And from the generated html:


In the first method, your code implicitly loads the driver using the
Class.forName() method. For Postgres, you would use: 

Class.forName("postgresql.Driver");


Not sure if it could be mentioned somewhere else? Or maybe we can make
a general statement about how well people using Java follow directions
:)
                     - Thomas

-- 
Thomas Lockhart				lockhart@alumni.caltech.edu
South Pasadena, California

В списке pgsql-docs по дате отправления
От: Peter T Mount
Дата:
Сообщение: JDBC problem in the docs
От: Wheeler, Alfred
Дата:
Сообщение: unsubscribe pgsql-docs
FAQ