mirror of
https://github.com/Wisser/Jailer.git
synced 2026-05-21 03:18:11 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user