From 36569817e96ec650a1620a4715d99bef60734292 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 30 Jul 2022 22:56:26 +0800 Subject: [PATCH] Update questdb bug --- .../SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs | 1 + .../Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs index c387dfcb6..03d5eea3b 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs @@ -67,6 +67,7 @@ namespace SqlSugar new KeyValuePair("int",CSharpDataType.@int), new KeyValuePair("integer",CSharpDataType.@int), new KeyValuePair("long",CSharpDataType.@long), + new KeyValuePair("bigint",CSharpDataType.@long), new KeyValuePair("long256",CSharpDataType.@long), new KeyValuePair("float",CSharpDataType.@float), new KeyValuePair("real",CSharpDataType.@float), diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs index 476df37c2..d12feb302 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/SqlBuilder/QuestDBInsertBuilder.cs +++ b/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) {