From bc5d6be2a77eea7db66cfc60a470d55b928412c4 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 18 Jun 2023 20:11:23 +0800 Subject: [PATCH] Update Oracle --- .../SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs | 1 + .../Realization/Oracle/SqlBuilder/OracleExpressionContext.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs index 076d15cb6..dffc54397 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs @@ -113,6 +113,7 @@ namespace SqlSugar new KeyValuePair("rowid",CSharpDataType.@string), new KeyValuePair("date",CSharpDataType.DateTime), + new KeyValuePair("timestamptz",CSharpDataType.DateTime), new KeyValuePair("timestamp",CSharpDataType.DateTime), new KeyValuePair("timestamp with local time zone",CSharpDataType.DateTime), new KeyValuePair("timestamp with time zone",CSharpDataType.DateTime), diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs index 4b468ebc7..33a85d0e5 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs @@ -33,6 +33,10 @@ namespace SqlSugar } public override string GetTranslationColumnName(string columnName) { + if (columnName == "systimestamp") + { + return columnName; + } if (columnName.Contains(":")) return base.GetTranslationColumnName(columnName); else if (columnName.Contains("\".\""))