Skip to content

Commit

Permalink
SqlsrvDriver: improved escapeBinary [Closes #287]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 7, 2020
1 parent ab36772 commit 0ee4628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/SqlsrvDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function escapeText(string $value): string

public function escapeBinary(string $value): string
{
return "'" . str_replace("'", "''", $value) . "'";
return '0x' . bin2hex($value);
}


Expand Down

0 comments on commit 0ee4628

Please sign in to comment.