Browse Source

Update PgsqlProvider

pull/20/head
sunkaixuan 2 years ago
parent
commit
25ceb895f4
  1. 4
      Src/Asp.Net/SqlSugar/Realization/PostgreSQL/PostgreSQLProvider.cs

4
Src/Asp.Net/SqlSugar/Realization/PostgreSQL/PostgreSQLProvider.cs

@ -153,6 +153,10 @@ namespace SqlSugar
{
sqlParameter.DbType = System.Data.DbType.AnsiString;
}
else if (sqlParameter.Value is DateTime && sqlParameter.DbType == System.Data.DbType.AnsiString)
{
sqlParameter.DbType = System.Data.DbType.DateTime;
}
++index;
}
return result;

Loading…
Cancel
Save