2
0

Fix test failures

Add bool type alias conversion in `elemKindToPointerTypes` and `underlyingNumberType`
This commit is contained in:
Alek Anokhin
2023-05-19 12:36:53 +02:00
committed by Jack Christensen
parent c1c67e4e58
commit 70a200cff4
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -881,6 +881,7 @@ func TestEncodeTypeRename(t *testing.T) {
conn.TypeMap().RegisterDefaultPgType(inUint32, "int8")
conn.TypeMap().RegisterDefaultPgType(inUint64, "int8")
conn.TypeMap().RegisterDefaultPgType(inString, "text")
conn.TypeMap().RegisterDefaultPgType(inBool, "bool")
err := conn.QueryRow(context.Background(), "select $1::int, $2::int, $3::int2, $4::int4, $5::int8, $6::int, $7::int, $8::int, $9::int, $10::int, $11::text, $12::bool",
inInt, inInt8, inInt16, inInt32, inInt64, inUint, inUint8, inUint16, inUint32, inUint64, inString, inBool,