Schema in connection URL
Schema in connection URL
От:
Andreas Joseph Krogh <andreak@officenet.no>
Дата:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have modified the code in AbstractJdbc1Connection.openConnection() to accept the following type of URL: connectionURL="jdbc:postgresql://localhost:5432/andreak?schema=myschema" So you can choose schema from JDBC(if ?schema is not given as parameter "public" is default of course). Is this interesting for others, should it be added to the official drivers? - -- Andreas Joseph Krogh The difference between insanity and genius is measured by success -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+AZTkUopImDh2gfQRAkWlAJ9CtDM+1PF4AYe4LRlCujIq0KK7cQCfThlb iNJsQVLr3QetsSNCJcfniN0= =ejed -----END PGP SIGNATURE-----
Re: Schema in connection URL
От:
Andreas Joseph Krogh <andreak@officenet.no>
Дата:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> ----- Original Message -----
> From: "Andreas Joseph Krogh"
> To:
> Sent: Thursday, December 19, 2002 10:44 AM
> Subject: [JDBC] Schema in connection URL
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > I have modified the code in AbstractJdbc1Connection.openConnection() to
>> accept
> > the following type of URL:
> > connectionURL="jdbc:postgresql://localhost:5432/andreak?schema=myschema"
> > So you can choose schema from JDBC(if ?schema is not given as parameter
> > "public" is default of course).
> > Is this interesting for others, should it be added to the official
> > drivers?
On Thursday 19 December 2002 11:04, you wrote:
> I think this is interesting, but please make sure that older pg versions
> (7.1) still work.
They do, it's all inside the if (haveMinimumServerVersion("7.3")) test.
Where do I post the code, here(pgsql-jdbc)? As a diff, its only a couple of
lines?
- --
Andreas Joseph Krogh
The difference between insanity and genius is measured by success
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+AZj2UopImDh2gfQRArTDAJ9lDGISfZX/hIKWhC38GkVPuzCfvgCgsiuF
4wtMtan/jPG8PysWHGnwGD8=
=gWFH
-----END PGP SIGNATURE-----