Add '\' escape character support for Oracle.

This commit is contained in:
Heng Sin Low 2011-02-21 19:21:35 +08:00
parent 87a93f946c
commit b1d1908f24
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ public class UUIDGenerator extends SvrProcess {
if (!tableName.endsWith("%"))
tableName = tableName + "%";
String sql = "SELECT AD_Table_ID, TableName FROM AD_Table WHERE TableName like ? AND IsView = 'N' AND IsActive='Y'";
if (DB.isOracle()) {
sql = sql + " ESCAPE '\' ";
}
PreparedStatement stmt = null;
ResultSet rs = null;
int count = 0;