added type replacement for VARCHAR2

git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@1589 3dd849cd-670e-4645-a7cd-dd197c8d0e81
This commit is contained in:
rwisser
2018-03-08 11:32:25 +00:00
parent 43bd31eb06
commit ef299bc110
@@ -17,6 +17,8 @@ package net.sf.jailer.configuration;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -518,6 +520,15 @@ public class DBMS {
* Gets replacement map for column types used for DDL generation.
*/
public Map<String, String> getTypeReplacement() {
if (!this.equals(DBMS.ORACLE)) {
if (typeReplacement == null) {
return Collections.singletonMap("VARCHAR2", "VARCHAR");
}
if (!typeReplacement.containsKey("VARCHAR2")) {
typeReplacement = new HashMap<String, String>(typeReplacement);
typeReplacement.put("VARCHAR2", "VARCHAR");
}
}
return typeReplacement;
}