mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-03 01:57:58 +08:00
- 调整 MySql 不支持 utc_timestamp 统一调速为 current_timestamp;#1604
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user