| От | Janossy Gergely |
|---|---|
| Тема | jdbc driver: Why it isn't jdbcCompliant? |
| Дата | |
| Msg-id | 00052701341103.02227@azul обсуждение исходный текст |
| Список | pgsql-interfaces |
Hi!
I'm using Sun JDK 1.2.2 and tried to use the pgsql interface with postgresql
6.x and 7.0 as well. I couldn't use any of the interfaces because
the method Driver.jdbcCompliant() is always false. Even with mysql driver.
I used a little test program:
if (evt.getSource()==registerButton) { try { Driver
d=(Driver)Class.forName(driver.getText()).newInstance(); kiir("Registered driver: "+driver.getText());
kiir("Verzio:"+d.getMajorVersion()+"."+d.getMinorVersion()); String s; if (!d.jdbcCompliant()) s="
not"; else s=" "; kiir("This driver is "+s+"JDBC-compliant"); } catch (Exception e) {
hiba("Registrationfailed", e); }
where driver.Gettext is the path of the postgres driver (org.postgres.Driver
i think.)
Thanx for your help
Greg.
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера