2
0

Add CopyFrom to pool

This commit is contained in:
Jack Christensen
2019-04-25 15:35:53 -05:00
parent 7b1272d254
commit d93de3fdc7
11 changed files with 134 additions and 8 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ func TestConnCopyFromSmall(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error for CopyFrom: %v", err)
}
if copyCount != len(inputRows) {
if int(copyCount) != len(inputRows) {
t.Errorf("Expected CopyFrom to return %d copied rows, but got %d", len(inputRows), copyCount)
}
@@ -97,7 +97,7 @@ func TestConnCopyFromLarge(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error for CopyFrom: %v", err)
}
if copyCount != len(inputRows) {
if int(copyCount) != len(inputRows) {
t.Errorf("Expected CopyFrom to return %d copied rows, but got %d", len(inputRows), copyCount)
}
@@ -152,7 +152,7 @@ func TestConnCopyFromJSON(t *testing.T) {
if err != nil {
t.Errorf("Unexpected error for CopyFrom: %v", err)
}
if copyCount != len(inputRows) {
if int(copyCount) != len(inputRows) {
t.Errorf("Expected CopyFrom to return %d copied rows, but got %d", len(inputRows), copyCount)
}