Update questdb bug

This commit is contained in:
sunkaixuan
2022-07-30 22:56:26 +08:00
parent 55ba0287aa
commit 36569817e9
2 changed files with 2 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("int",CSharpDataType.@int), new KeyValuePair<string, CSharpDataType>("int",CSharpDataType.@int),
new KeyValuePair<string, CSharpDataType>("integer",CSharpDataType.@int), new KeyValuePair<string, CSharpDataType>("integer",CSharpDataType.@int),
new KeyValuePair<string, CSharpDataType>("long",CSharpDataType.@long), new KeyValuePair<string, CSharpDataType>("long",CSharpDataType.@long),
new KeyValuePair<string, CSharpDataType>("bigint",CSharpDataType.@long),
new KeyValuePair<string, CSharpDataType>("long256",CSharpDataType.@long), new KeyValuePair<string, CSharpDataType>("long256",CSharpDataType.@long),
new KeyValuePair<string, CSharpDataType>("float",CSharpDataType.@float), new KeyValuePair<string, CSharpDataType>("float",CSharpDataType.@float),
new KeyValuePair<string, CSharpDataType>("real",CSharpDataType.@float), new KeyValuePair<string, CSharpDataType>("real",CSharpDataType.@float),

View File

@@ -80,7 +80,7 @@ namespace SqlSugar
object value = null; object value = null;
if (it.Value is DateTime) if (it.Value is DateTime)
{ {
return $" cast('{it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff")}' as timestamp)"; return $" cast('{it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.ffffff")}' as timestamp)";
} }
else if (it.Value is int || it.Value is long ||it.Value is short || it.Value is short || it.Value is byte) else if (it.Value is int || it.Value is long ||it.Value is short || it.Value is short || it.Value is byte)
{ {