File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,8 @@ def test_statement_with_error_trace(cratedb_service):
1111 engine = sa .create_engine (cratedb_service .database .dburi , connect_args = {"error_trace" : True })
1212 with engine .connect () as connection :
1313 with pytest .raises (sa .exc .ProgrammingError ) as ex :
14- connection .execute (sa .text ("CREATE TABLE foo AS SELECT 1 AS _foo" ))
14+ connection .execute (sa .text ("CREATE TABLE foo AS SELECT 1 AS _id" ))
15+ assert ex .match (re .escape ('InvalidColumnNameException["_id" conflicts with system column]' ))
1516 assert ex .match (
16- re .escape ('InvalidColumnNameException["_foo" conflicts with system column pattern]' )
17- )
18- assert ex .match (
19- "io.crate.exceptions.InvalidColumnNameException: "
20- '"_foo" conflicts with system column pattern'
17+ 'io.crate.exceptions.InvalidColumnNameException: "_id" conflicts with system column'
2118 )
You can’t perform that action at this time.
0 commit comments