Browse Source

sql regexp替换为~

guoyuanquan@mail.taiji.com.cn 8 months ago
parent
commit
fda899e175

+ 1 - 1
cn.com.taiji.system/src/main/java/cn/com/taiji/zhongxiao/service/DatametaService.java

@@ -385,7 +385,7 @@ public class DatametaService extends BaseService {
 				 paramList.add(s.substring(0, s.length()-1)+"");
 			     }
 			     else if("mysql".equals(database_type)){
-				 sql.append(" metaname REGEXP ? ");
+				 sql.append(" metaname ~ ? ");
 				 paramList.add(s.substring(0, s.length()-1)+""); 
 			     }