Project

General

Profile

« Previous | Next » 

Revision 1749

Added by Jing Tao over 20 years ago

Revise the toDate method for sql server.

View differences:

SqlserverAdapter.java
98 98
  }
99 99
  
100 100
 /**
101
  * MSSQL doesn't support the to_date function, so we transfer text directly
101
  * MSSQL doesn't support the to_date function, so we transfer text directly.
102
  * This method will overwrite the method in AbstarctDatabase class
102 103
  */
103 104
  public String toDate(String dateString, String format)
104 105
  {
105
    return dateString;
106
    return "'" + dateString +"'";
106 107
  }
107 108
  
108 109
}

Also available in: Unified diff