cast bytea to make []byte suitable for both string and binary string types
This commit is contained in:
@@ -87,7 +87,7 @@ func QuoteString(str string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func QuoteBytes(buf []byte) string {
|
func QuoteBytes(buf []byte) string {
|
||||||
return `'\x` + hex.EncodeToString(buf) + "'"
|
return `'\x` + hex.EncodeToString(buf) + "'::bytea"
|
||||||
}
|
}
|
||||||
|
|
||||||
type sqlLexer struct {
|
type sqlLexer struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user