Skip client_encoding test for CockroachDB

pull/955/head
Jack Christensen 2021-02-13 13:35:05 -06:00
parent 3a27bcd459
commit c588c47ddd
1 changed files with 4 additions and 0 deletions

View File

@ -1878,6 +1878,10 @@ func TestConnSimpleProtocolRefusesNonUTF8ClientEncoding(t *testing.T) {
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
defer closeConn(t, conn)
if conn.PgConn().ParameterStatus("crdb_version") != "" {
t.Skip("Server does not support changing client_encoding (https://www.cockroachlabs.com/docs/stable/set-vars.html)")
}
mustExec(t, conn, "set client_encoding to 'SQL_ASCII'")
var expected string