Browse Source

Update Oracle

pull/36/head
sunkaixuan 1 year ago
parent
commit
bc5d6be2a7
  1. 1
      Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs
  2. 4
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs

1
Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs

@ -113,6 +113,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("rowid",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("date",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamptz",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp with local time zone",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTime),

4
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("\".\""))

Loading…
Cancel
Save