Update Gbase

This commit is contained in:
sunkaixuan
2022-08-27 22:53:27 +08:00
parent 6616d465cb
commit 2a5f3e46f9
2 changed files with 3 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ namespace SqlSugar.GBase
new KeyValuePair<string, CSharpDataType>("blob",CSharpDataType.byteArray),
new KeyValuePair<string, CSharpDataType>("boolean",CSharpDataType.@bool),
new KeyValuePair<string, CSharpDataType>("byte",CSharpDataType.@byte),
new KeyValuePair<string, CSharpDataType>("varchar", CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("char",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("clob",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("DATETIME YEAR TO FRACTION(3)", CSharpDataType.DateTime),

View File

@@ -342,7 +342,8 @@ where a.tabtype in ('V') and not (a.tabname like 'sys%') AND a.tabname <>'dual'
}
else if (item.IsPrimarykey)
{
dataType = (dataType + " primary key");
dataSize = "";
dataType = (dataType + dataSize + " primary key");
}
//string identity = item.IsIdentity ? this.CreateTableIdentity : null;
string addItem = string.Format(this.CreateTableColumn, columnName, dataType, dataSize, nullType, "", "");