mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-10-19 08:03:52 +00:00
字符串类型长度调整
This commit is contained in:
@@ -173,9 +173,10 @@ public class DatabaseOracleImpl extends AbstractDatabase implements IDatabaseInt
|
|||||||
retval.append("CLOB");
|
retval.append("CLOB");
|
||||||
} else {
|
} else {
|
||||||
if (length == 1) {
|
if (length == 1) {
|
||||||
retval.append("CHAR(1)");
|
retval.append("NVARCHAR2(1)");
|
||||||
} else if (length > 0) {
|
} else if (length > 0) {
|
||||||
retval.append("VARCHAR2(").append(4000).append(')');
|
// VARCHAR2(size),size最大值为4000,单位是字节;而NVARCHAR2(size),size最大值为2000,单位是字符
|
||||||
|
retval.append("NVARCHAR2(").append(length).append(')');
|
||||||
} else {
|
} else {
|
||||||
retval.append("CLOB");// We don't know, so we just use the maximum...
|
retval.append("CLOB");// We don't know, so we just use the maximum...
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user