mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
SqlsrvDriver: improved escapeBinary [Closes #287]
This commit is contained in:
@@ -200,7 +200,7 @@ class SqlsrvDriver implements Dibi\Driver
|
|||||||
|
|
||||||
public function escapeBinary(string $value): string
|
public function escapeBinary(string $value): string
|
||||||
{
|
{
|
||||||
return "'" . str_replace("'", "''", $value) . "'";
|
return '0x' . bin2hex($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user