We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be22dfb commit e4a84b9Copy full SHA for e4a84b9
psycopg/adapter_binary.c
@@ -88,9 +88,9 @@ binary_quote(binaryObject *self)
88
PQfreemem(to);
89
}
90
91
- /* if the wrapped object is not a string or a buffer, this is an error */
+ /* if the wrapped object is not bytes or a buffer, this is an error */
92
else {
93
- PyErr_SetString(PyExc_TypeError, "can't escape non-string object");
+ PyErr_SetString(PyExc_TypeError, "can't escape non-bytes object");
94
return NULL;
95
96
0 commit comments