Commit 4b126f5
committed
Encode a Buffer as hexadecimal
This handles better for BLOB type columns. Without this, it basically
would have only worked for ASCII binary data since it gets
Buffer.toString()'d, but then does an extra quoting and sanitization
pass.
For binary data, which we can assume is coming from a Buffer, we want to
send as hexadecimal.
Fixes #1611 parent 7b49f94 commit 4b126f5
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments