Browse Source

Insert UPDATE BUG

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
e4a151b12b
  1. 2
      SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs
  2. 2
      SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

2
SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs

@ -163,7 +163,7 @@ namespace SqlSugar
{
date = Convert.ToDateTime("1900-1-1");
}
return "'" + date.ToString("yyyy-MM-dd hh:mm:ss.fff") + "'";
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
}
else if (type == PubConst.BoolType)
{

2
SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

@ -256,7 +256,7 @@ namespace SqlSugar
if (date < Convert.ToDateTime("1900-1-1")) {
date = Convert.ToDateTime("1900-1-1");
}
return "'" + date.ToString("yyyy-MM-dd hh:mm:ss.fff") + "'";
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
}
else if (type == PubConst.BoolType)
{

Loading…
Cancel
Save