@@ -18,6 +18,7 @@ import (
1818 "testing"
1919
2020 "github.com/dolthub/go-mysql-server/sql"
21+ "github.com/jackc/pgx/v5/pgtype"
2122)
2223
2324func TestTypes (t * testing.T ) {
@@ -88,8 +89,8 @@ var typesTests = []ScriptTest{
8889 {
8990 Query : "SELECT * FROM t_bit ORDER BY id;" ,
9091 Expected : []sql.Row {
91- {1 , [] byte { 0xDA }},
92- {2 , [] byte { 0x2B }},
92+ {1 , pgtype. Bits { Bytes : [] uint8 { 0xda }, Len : 8 , Valid : true }},
93+ {2 , pgtype. Bits { Bytes : [] uint8 { 0x2b }, Len : 8 , Valid : true }},
9394 },
9495 },
9596 },
@@ -3008,8 +3009,8 @@ var typesTests = []ScriptTest{
30083009 "create table t_uuid2 (id int primary key, v1 uuid, v2 uuid);" ,
30093010 "create index on t_uuid2(v1, v2);" ,
30103011 "insert into t_uuid2 values " +
3011- "(1, 'f47ac10b58cc4372a567-0e02b2c3d479', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'), " +
3012- "(2, 'dcf783c8-49c2-44b4-8b90-34ad8c52ea1e', 'f99802e8-0018-4913-806c-bcad5d246d46');" ,
3012+ "(1, 'f47ac10b58cc4372a567-0e02b2c3d479', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'), " +
3013+ "(2, 'dcf783c8-49c2-44b4-8b90-34ad8c52ea1e', 'f99802e8-0018-4913-806c-bcad5d246d46');" ,
30133014 },
30143015 Assertions : []ScriptTestAssertion {
30153016 {
0 commit comments