Changeset: d83fabed7fd9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d83fabed7fd9
Modified Files:
sql/test/copy/Tests/parse-misc.py
Branch: default
Log Message:
Test parse-misc actually expected the COPY OFFSET behavior (#8093)
diffs (32 lines):
diff --git a/sql/test/copy/Tests/parse-misc.py
b/sql/test/copy/Tests/parse-misc.py
--- a/sql/test/copy/Tests/parse-misc.py
+++ b/sql/test/copy/Tests/parse-misc.py
@@ -267,13 +267,13 @@ run_test(basecase # use basecase so
run_test(TestCase("i INT, t TEXT, j INT", testdata)
.replace(3, '41|')
.offset(3)
- .expect_error("Row 2: too few fields") # note row 2, not 4!
+ .expect_error("Row 4: too few fields") # still row 4, despite the
offset!
)
# This test exercises copy.parse_integer
run_test(TestCase("i INT, t TEXT, j INT", testdata)
.replace(3, '4x1|bla|43')
.offset(3)
- .expect_error("Row 2 column 1") # note row 2, not 4!
+ .expect_error("Row 4 column 1")
)
# These tests exercise copy.fixlines
run_test(TestCase("t TEXT", '1\n"2\n3"\n4', quote='"')
@@ -282,10 +282,10 @@ run_test(TestCase("t TEXT", '1\n"2\n3\n4
.expect_error("Row 2: unterminated quoted string"))
run_test(TestCase("t TEXT", '1\n2\n3\n"4', quote='"')
.offset(3)
- .expect_error("Row 2: unterminated quoted string"))
+ .expect_error("Row 4: unterminated quoted string"))
run_test(TestCase("t TEXT", '1\n2\n3\n4', raw=True)
.offset(3)
- .expect_error("Row 2: unterminated line"))
+ .expect_error("Row 4: unterminated line"))
# More copy.fixlines, but this time the errors occur in the second block
run_test(TestCase("t TEXT", '1%\n2\n3\n"4', quote='"')
.expect_error("Row 4: unterminated quoted string"))
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]