2
0

Make pgtype test compat with CockroachDB when possible

This commit is contained in:
Jack Christensen
2022-03-22 20:31:00 -05:00
parent 210ebb4a50
commit e04b35bfcb
20 changed files with 73 additions and 1 deletions
+4
View File
@@ -65,6 +65,8 @@ func TestTextCodecName(t *testing.T) {
// Test fixed length char types like char(3)
func TestTextCodecBPChar(t *testing.T) {
skipCockroachDB(t, "Server does not properly handle bpchar with multi-byte character")
testutil.RunTranscodeTests(t, "char(3)", []testutil.TranscodeTestCase{
{
pgtype.Text{String: "a ", Valid: true},
@@ -92,6 +94,8 @@ func TestTextCodecBPChar(t *testing.T) {
//
// It only supports the text format.
func TestTextCodecACLItem(t *testing.T) {
skipCockroachDB(t, "Server does not support type aclitem")
conn := testutil.MustConnectPgx(t)
defer testutil.MustCloseContext(t, conn)