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 Sun, 06 Jun 2004 12:17:32 GMT
ceki        2004/06/06 05:17:32

  Modified:    src/java/org/apache/log4j/db/dialect Util.java
  Log:
  An attempt to correctly discover the MsSQL dialect.
  
  Revision  Changes    Path
  1.7       +3 -2      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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Util.java	4 Jun 2004 15:39:55 -0000	1.6
  +++ Util.java	6 Jun 2004 12:17:32 -0000	1.7
  @@ -33,7 +33,7 @@
     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 = "microsoft sql server";
  +  private static final String MSSQL_PART = "microsoft";
     private static final String HSQL_PART = "hsql";
     
     public static int discoverSQLDialect(DatabaseMetaData meta) {
  @@ -42,7 +42,7 @@
       try {
   
         String dbName = meta.getDatabaseProductName().toLowerCase();
  -      LogLog.debug("**db name is " + dbName);
  +      LogLog.debug("==db name is [" + dbName +"]");
   
         if (dbName.indexOf(POSTGRES_PART) != -1) {
           return ConnectionSource.POSTGRES_DIALECT;
  @@ -51,6 +51,7 @@
         } else if (dbName.indexOf(ORACLE_PART) != -1) {
           return ConnectionSource.ORACLE_DIALECT;
         } else if (dbName.indexOf(MSSQL_PART) != -1) {
  +        LogLog.info("Selecting MsSQL dialect");
           return ConnectionSource.MSSQL_DIALECT;
         } else if (dbName.indexOf(HSQL_PART) != -1) {
           return ConnectionSource.HSQL_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