- 调整 Oracle StringLength/MaxLength -1 时候映射为 nclob;

This commit is contained in:
28810
2020-03-31 06:07:47 +08:00
parent 7795296328
commit 558fc52cf0
3 changed files with 48 additions and 16 deletions

View File

@ -223,6 +223,9 @@ namespace FreeSql.Internal
else colattr.DbType = Regex.Replace(colattr.DbType, charPatten, $"$1({strlen})");
break;
case DataType.Oracle:
if (strlen < 0) colattr.DbType = "NCLOB"; //v1.3.2+ https://github.com/dotnetcore/FreeSql/issues/259
else colattr.DbType = Regex.Replace(colattr.DbType, charPatten, $"$1({strlen})");
break;
case DataType.OdbcOracle:
case DataType.OdbcDameng:
if (strlen < 0) colattr.DbType = Regex.Replace(colattr.DbType, charPatten, $"$1(4000)");