Line 105... |
Line 105... |
105 |
// since 7.3 default is without timezone
|
105 |
// since 7.3 default is without timezone
|
106 |
this.typeNames.addAll(Timestamp.class, "timestamp", "timestamp without time zone");
|
106 |
this.typeNames.addAll(Timestamp.class, "timestamp", "timestamp without time zone");
|
107 |
this.typeNames.addAll(java.sql.Date.class, "date");
|
107 |
this.typeNames.addAll(java.sql.Date.class, "date");
|
108 |
this.typeNames.addAll(java.sql.Time.class, "time", "time without time zone");
|
108 |
this.typeNames.addAll(java.sql.Time.class, "time", "time without time zone");
|
109 |
this.typeNames.addAll(Blob.class, "bytea");
|
109 |
this.typeNames.addAll(Blob.class, "bytea");
|
- |
|
110 |
// even though PG treats all Character Types equally, unbounded varchar is not standard, so
|
- |
|
111 |
// prefer "text" which is supported by all systems
|
110 |
this.typeNames.addAll(Clob.class, "varchar", "char", "character varying", "character", "text");
|
112 |
this.typeNames.addAll(Clob.class, "text", "varchar", "char", "character varying", "character");
|
111 |
this.typeNames.addAll(String.class, "varchar", "char", "character varying", "character", "text");
|
113 |
this.typeNames.addAll(String.class, "varchar", "char", "character varying", "character", "text");
|
112 |
}
|
114 |
}
|
113 |
|
115 |
|
114 |
static final Pattern BACKSLASH_PATTERN = Pattern.compile("\\", Pattern.LITERAL);
|
116 |
static final Pattern BACKSLASH_PATTERN = Pattern.compile("\\", Pattern.LITERAL);
|
115 |
static final String TWO_BACKSLASH_REPLACEMENT = Matcher.quoteReplacement("\\\\");
|
117 |
static final String TWO_BACKSLASH_REPLACEMENT = Matcher.quoteReplacement("\\\\");
|