2
0

cast bytea to make []byte suitable for both string and binary string types

This commit is contained in:
jinhua luo
2019-06-25 01:05:28 +08:00
committed by GitHub
parent 762e68533f
commit 39b09f2c4a
+1 -1
View File
@@ -87,7 +87,7 @@ func QuoteString(str string) string {
}
func QuoteBytes(buf []byte) string {
return `'\x` + hex.EncodeToString(buf) + "'"
return `'\x` + hex.EncodeToString(buf) + "'::bytea"
}
type sqlLexer struct {