The patch does the following:
Barry Lind <barry@xythos.com>
The patch does the following: Allows you to set the loglevel at runtime by adding ?loglevel=X to the connection URL, where 1 = INFO and 2 = DEBUG. Automatically turns on logging by calling DriverManager.setPrintWriter(new PrintWriter(System.out)) if one is not already set. Adds a Driver.info() message that prints out the version number Adds member variables logDebug and logInfo that can be checked before making logging methods calls Adds a build number to the version number string. This build number will need to be manually incremented when we see fit. ---------------------------------------------------------------------- Modified Files: org/postgresql/Connection.java org/postgresql/Driver.java.in org/postgresql/fastpath/Fastpath.java org/postgresql/jdbc1/DatabaseMetaData.java org/postgresql/jdbc2/Connection.java org/postgresql/jdbc2/DatabaseMetaData.java org/postgresql/largeobject/LargeObjectManager.java org/postgresql/util/PSQLException.java org/postgresql/util/Serialize.java ----------------------------------------------------------------------
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/jdbc/org/postgresql/Connection.java | modified | +1246 −1215 |
| src/interfaces/jdbc/org/postgresql/Driver.java.in | modified | +25 −99 |
| src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | modified | +2 −2 |
| src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | modified | +2 −3 |
| src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java | modified | +9 −1 |
| src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | modified | +80 −80 |
| src/interfaces/jdbc/org/postgresql/largeobject/LargeObjectManager.java | modified | +2 −1 |
| src/interfaces/jdbc/org/postgresql/util/Serialize.java | modified | +12 −11 |