Author: pero Date: Fri Apr 14 00:29:25 2006 New Revision: 394037 URL: http://svn.apache.org/viewcvs?rev=394037&view=rev Log: Change userField default. User is at many database a reserved keyword
Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java tomcat/container/tc5.5.x/webapps/docs/changelog.xml Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java?rev=394037&r1=394036&r2=394037&view=diff ============================================================================== --- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java (original) +++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java Fri Apr 14 00:29:25 2006 @@ -44,7 +44,7 @@ * To use, copy into the server/classes directory of the Tomcat installation * and configure in server.xml as: * <pre> - * <Valve className="AccessLogDBValve" + * <Valve className="JDBCAccessLogValve" * driverName="<i>your_jdbc_driver</i>" * connectionURL="<i>your_jdbc_url</i>" * pattern="combined" resolveHosts="false" @@ -76,7 +76,7 @@ * id INT UNSIGNED AUTO_INCREMENT NOT NULL, * ts TIMESTAMP NOT NULL, * remoteHost CHAR(15) NOT NULL, - * user CHAR(15), + * userName CHAR(15), * timestamp TIMESTAMP NOT NULL, * virtualHost VARCHAR(64) NOT NULL, * method VARCHAR(8) NOT NULL, @@ -124,7 +124,7 @@ * connectionURL = null; * tableName = "access"; * remoteHostField = "remoteHost"; - * userField = "user"; + * userField = "userName"; * timestampField = "timestamp"; * virtualHostField = "virtualHost"; * methodField = "method"; @@ -143,7 +143,7 @@ connectionURL = null; tableName = "access"; remoteHostField = "remoteHost"; - userField = "user"; + userField = "userName"; timestampField = "timestamp"; virtualHostField = "virtualHost"; methodField = "method"; @@ -208,7 +208,7 @@ * The descriptive information about this implementation. */ protected static String info = - "org.apache.catalina.valves.JDBCAccessLogValve/1.0"; + "org.apache.catalina.valves.JDBCAccessLogValve/1.1"; /** Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?rev=394037&r1=394036&r2=394037&view=diff ============================================================================== --- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original) +++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Fri Apr 14 00:29:25 2006 @@ -77,6 +77,10 @@ <fix> <bug>38476</bug>: Modified check for null TLD stream, as suggested by Fabrizio Giustina. (yoavs) </fix> + <fix> + <bug>38052</bug>: Use <i>userName</i> as userField default. User is at many databases a + reserved keyword, as suggested by rik. (pero) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]