1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 21:58:10 +02:00

SqlsrvDriver: improved escapeBinary [Closes #287]

This commit is contained in:
David Grudl
2020-05-18 13:07:50 +02:00
parent ab3677203c
commit 0ee4628712

View File

@@ -200,7 +200,7 @@ class SqlsrvDriver implements Dibi\Driver
public function escapeBinary(string $value): string
{
return "'" . str_replace("'", "''", $value) . "'";
return '0x' . bin2hex($value);
}