2
0

CopyFrom not table test was failing with syntax error

This commit is contained in:
Jack Christensen
2019-12-21 10:31:27 -06:00
parent 32350bd1dc
commit bd0ce203e9
+1 -1
View File
@@ -1444,7 +1444,7 @@ func TestConnCopyFromQueryNoTableError(t *testing.T) {
srcBuf := &bytes.Buffer{}
res, err := pgConn.CopyFrom(context.Background(), srcBuf, "cropy foo to stdout")
res, err := pgConn.CopyFrom(context.Background(), srcBuf, "copy foo to stdout")
require.Error(t, err)
assert.IsType(t, &pgconn.PgError{}, err)
assert.Equal(t, int64(0), res.RowsAffected())