pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feeddetecting SQL system
2+ messages / 2 participants
[nested] [flat]
* detecting SQL system
@ 2004-09-23 07:25 John R Pierce <pierce@hogranch.com>
2004-09-23 07:40 ` Re: detecting SQL system Oliver Jowett <oliver@opencloud.com>
0 siblings, 1 reply; 2+ messages in thread
From: John R Pierce @ 2004-09-23 07:25 UTC (permalink / raw)
To: pgsql-jdbc
One of the Java developers in my group asked me today if there was any
reliable and portable way he could query JDBC to find out what database he
was connected to, Postgres vs Oracle vs TimesTen vs ???
So, I'm curious, are there any SQL standard methods of doing this? Is the
information_schema any part of the standard, i.e. could we
SELECT character_value FROM information.schema.sql_implementation_info
WHERE implementation_info_name = 'SERVER NAME';
?
Or do we have to poke around at each of these DBMS servers and figure out
whats unique about them ?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: detecting SQL system
2004-09-23 07:25 detecting SQL system John R Pierce <pierce@hogranch.com>
@ 2004-09-23 07:40 ` Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Jowett @ 2004-09-23 07:40 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-jdbc
John R Pierce wrote:
> One of the Java developers in my group asked me today if there was any
> reliable and portable way he could query JDBC to find out what database
> he was connected to, Postgres vs Oracle vs TimesTen vs ???
connection.getMetaData().getDatabaseProductName()
There are similar methods to get version and driver info.
-O
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-09-23 07:40 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 07:25 detecting SQL system John R Pierce <pierce@hogranch.com>
2004-09-23 07:40 ` Oliver Jowett <oliver@opencloud.com>
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