mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 调整 MySql 不支持 utc_timestamp 统一调速为 current_timestamp;#1604
This commit is contained in:
parent
11ebe7aaff
commit
e0ac811ed1
@ -13,7 +13,7 @@
|
||||
<PackageProjectUrl>https://github.com/2881099/FreeSql</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/2881099/FreeSql</RepositoryUrl>
|
||||
<PackageTags>FreeSql DbFirst 实体生成器</PackageTags>
|
||||
<Version>3.2.701</Version>
|
||||
<Version>3.2.702</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -68,7 +68,7 @@ namespace FreeSql.Custom.MySql
|
||||
public override string Mod(string left, string right, Type leftType, Type rightType) => $"{left} % {right}";
|
||||
public override string Div(string left, string right, Type leftType, Type rightType) => $"{left} div {right}";
|
||||
public override string Now => "now()";
|
||||
public override string NowUtc => "utc_timestamp()";
|
||||
public override string NowUtc => "current_timestamp()";
|
||||
|
||||
public override string QuoteWriteParamterAdapter(Type type, string paramterName)
|
||||
{
|
||||
|
@ -48,6 +48,7 @@ namespace FreeSql.KingbaseES
|
||||
case "varchar": ret = KdbndpDbType.Varchar; break;
|
||||
case "text": ret = KdbndpDbType.Text; break;
|
||||
|
||||
case "datetime": ret = KdbndpDbType.Timestamp; break;
|
||||
case "timestamp": ret = KdbndpDbType.Timestamp; break;
|
||||
case "timestamptz": ret = KdbndpDbType.Timestamp; break;
|
||||
case "date": ret = KdbndpDbType.Date; break;
|
||||
|
@ -100,7 +100,7 @@ namespace FreeSql.MySql
|
||||
public override string Mod(string left, string right, Type leftType, Type rightType) => $"{left} % {right}";
|
||||
public override string Div(string left, string right, Type leftType, Type rightType) => $"{left} div {right}";
|
||||
public override string Now => "now()";
|
||||
public override string NowUtc => "utc_timestamp()";
|
||||
public override string NowUtc => "current_timestamp()";
|
||||
|
||||
public override string QuoteWriteParamterAdapter(Type type, string paramterName)
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ namespace FreeSql.MySql
|
||||
public override string Mod(string left, string right, Type leftType, Type rightType) => $"{left} % {right}";
|
||||
public override string Div(string left, string right, Type leftType, Type rightType) => $"{left} div {right}";
|
||||
public override string Now => "now()";
|
||||
public override string NowUtc => "utc_timestamp()";
|
||||
public override string NowUtc => "current_timestamp()";
|
||||
|
||||
public override string QuoteWriteParamterAdapter(Type type, string paramterName)
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ namespace FreeSql.Odbc.MySql
|
||||
public override string Mod(string left, string right, Type leftType, Type rightType) => $"{left} % {right}";
|
||||
public override string Div(string left, string right, Type leftType, Type rightType) => $"{left} div {right}";
|
||||
public override string Now => "now()";
|
||||
public override string NowUtc => "utc_timestamp()";
|
||||
public override string NowUtc => "current_timestamp()";
|
||||
|
||||
public override string QuoteWriteParamterAdapter(Type type, string paramterName)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user