logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/db/dialect Util.java
Date Fri, 04 Jun 2004 15:39:55 GMT
ceki        2004/06/04 08:39:55

  Modified:    src/java/org/apache/log4j/db/dialect Util.java
  Log:
  For MsSQL, it appears that the reported database name is "microsoft sql server"
  
  Revision  Changes    Path
  1.6       +2 -3      logging-log4j/src/java/org/apache/log4j/db/dialect/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/db/dialect/Util.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Util.java	4 Jun 2004 10:16:21 -0000	1.5
  +++ Util.java	4 Jun 2004 15:39:55 -0000	1.6
  @@ -32,7 +32,8 @@
     private static final String POSTGRES_PART = "postgresql";
     private static final String MYSQL_PART = "mysql";
     private static final String ORACLE_PART = "oracle";
  -  private static final String MSSQL_PART = "mssqlserver4";
  +  //private static final String MSSQL_PART = "mssqlserver4";
  +  private static final String MSSQL_PART = "microsoft sql server";
     private static final String HSQL_PART = "hsql";
     
     public static int discoverSQLDialect(DatabaseMetaData meta) {
  @@ -44,8 +45,6 @@
         LogLog.debug("**db name is " + dbName);
   
         if (dbName.indexOf(POSTGRES_PART) != -1) {
  -        LogLog.debug("POSTGRESQL dialect selected");
  -
           return ConnectionSource.POSTGRES_DIALECT;
         } else if (dbName.indexOf(MYSQL_PART) != -1) {
           return ConnectionSource.MYSQL_DIALECT;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message