Browse Source

Update questdb bug

SqlSugar5
sunkaixuan 2 years ago
parent
commit
36569817e9
  1. 1
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs

1
Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs

@ -67,6 +67,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("int",CSharpDataType.@int),
new KeyValuePair<string, CSharpDataType>("integer",CSharpDataType.@int),
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>("float",CSharpDataType.@float),
new KeyValuePair<string, CSharpDataType>("real",CSharpDataType.@float),

2
Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs

@ -80,7 +80,7 @@ namespace SqlSugar
object value = null;
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)
{

Loading…
Cancel
Save