Skip to content

Commit

Permalink
Update PetaPoco/Database.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Stelio Kontos <37424493+Ste1io@users.noreply.github.com>
  • Loading branch information
Curlack and Ste1io committed Oct 23, 2023
1 parent 0dfc8e8 commit b36c22b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PetaPoco/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3373,9 +3373,7 @@ public string FormatCommand(string sql, object[] args)
sb.Append("\n");
for (int i = 0; i < args.Length; i++)
{
var arg = args[i];
var argTypeName = arg == null ? "Unknown Type" : args.GetType().Name;
sb.AppendFormat("\t -> {0}{1} [{2}] = \"{3}\"\n", _paramPrefix, i, argTypeName, arg);
sb.AppendFormat("\t -> {0}{1} [{2}] = \"{3}\"\n", _paramPrefix, i, args[i]?.GetType().Name ?? "Unknown Type", args[i]);
}

sb.Remove(sb.Length - 1, 1);
Expand Down

0 comments on commit b36c22b

Please sign in to comment.