Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
c6ceb6116c
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs
  2. 2
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs
  3. 2
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs
  4. 2
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

2
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs

@ -168,7 +168,7 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
}
else if (type.IsEnum())

2
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

@ -261,7 +261,7 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
}
else if (type.IsEnum())

2
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

@ -111,7 +111,7 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
}
else if (type == UtilConstants.BoolType)

2
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

@ -60,7 +60,7 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
}
else if (type == UtilConstants.BoolType)

Loading…
Cancel
Save