Open GoogleCodeExporter opened 8 years ago
Hi,
I'm not sure what the problem is. Couldn't you set the user name in the data
source? Why do you want to set it in the database URL?
Regards,
Thomas
Original comment by thomas.t...@gmail.com
on 28 Jul 2013 at 9:33
I want my users to specify a database connection by providing a connection URL
as a system property. If credentials are supported in the URL, I don't have to
have separate properties for them. This works with Oracle and PostgreSQL, and
I'd have to make an exception for H2.
Original comment by christia...@gmail.com
on 29 Jul 2013 at 4:56
Hm, if it works for Oracle and PostgreSQL, then we should make it work for H2
as well. I wonder if the default user name and password could be null in the
JdbcDataSource.
Original comment by thomas.t...@gmail.com
on 29 Jul 2013 at 5:05
Actually I was wrong, while PostgreSQL like H2 supports credentials in the URL,
the PGXADataSource doesn't even support a URL property. So it's as bad as Derby
in that regard. Seriously, URLs have a perfectly established syntax for
protocol, location or a resource, access credentials, and key/value parameters.
Why any other property configuration mechanism is required I don't understand
at all... </rant>
Original comment by christia...@gmail.com
on 29 Jul 2013 at 10:51
Now looking at the code, it might actually simplify things if the user name
wouldn't be set to an empty string by default (but null would be used instead).
Original comment by thomas.t...@gmail.com
on 29 Jul 2013 at 11:30
Original issue reported on code.google.com by
christia...@gmail.com
on 28 Jul 2013 at 2:26