File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2141,6 +2141,10 @@ func TestConnCopyFromConnectionTerminated(t *testing.T) {
21412141 require .NoError (t , err )
21422142 defer closeConn (t , pgConn )
21432143
2144+ if pgConn .ParameterStatus ("crdb_version" ) != "" {
2145+ t .Skip ("Server does not support pg_terminate_backend" )
2146+ }
2147+
21442148 closerConn , err := pgconn .Connect (ctx , os .Getenv ("PGX_TEST_DATABASE" ))
21452149 require .NoError (t , err )
21462150 time .AfterFunc (500 * time .Millisecond , func () {
@@ -2171,9 +2175,6 @@ func TestConnCopyFromConnectionTerminated(t *testing.T) {
21712175 }()
21722176
21732177 copySql := "COPY foo FROM STDIN WITH (FORMAT csv)"
2174- if pgConn .ParameterStatus ("crdb_version" ) != "" {
2175- copySql = "COPY foo FROM STDIN WITH CSV"
2176- }
21772178 ct , err := pgConn .CopyFrom (ctx , r , copySql )
21782179 assert .Equal (t , int64 (0 ), ct .RowsAffected ())
21792180 assert .Error (t , err )
You can’t perform that action at this time.
0 commit comments