> It's early here but I can't see how this makes it work. It appears that the code that is being replaced is exactly the same except that there is an if statement in front of it ? >
here the Connection's LogLevel is set to be the initial value 0(*) via URL, although nobody set DataSource's LogLevel by calling BaseDataSource.setLogLevel().
I think it's better append "loglevel" to URL only when BaseDataSource.setLogLevel() was called. so a Connection created by DataSource.getConnection() can inherit JVM level's LogLevel setting just like which one created by DriverManager.getConnection().
*)0 is the initial value and not a valid LogLevel, valid values are INFO (1) and DEBUG (2).
-- Best Regards, Chen Huajun
(2013/01/17 17:19), Dave Cramer wrote:
It's early here but I can't see how this makes it work. It appears that the code that is being replaced is exactly the same except that there is an if statement in front of it ?