Skip to content
Snippets Groups Projects
Commit 47bf67f8 authored by Maksim Kaitmazian's avatar Maksim Kaitmazian Committed by Maksim Kaitmazian
Browse files

remove redundant cast and sync parsing error message

parent 13310ca4
No related branches found
No related tags found
1 merge request!920pgproto module
......@@ -25,7 +25,7 @@ def test_simple_query_flow_errors(postgres: Postgres):
cur = conn.cursor()
with pytest.raises(
pg.DatabaseError, match="expected CreateUser, DropUser, CreateRole,"
pg.DatabaseError, match="expected CreateUser, AlterUser, DropUser"
):
cur.execute(
"""
......@@ -75,9 +75,9 @@ def test_simple_flow_session(postgres: Postgres):
cur.execute(
"""
INSERT INTO "tall" VALUES
(1, 'one', true, CAST(0.1 AS DOUBLE)),
(2, 'to', false, CAST(0.2 AS DOUBLE)),
(4, 'for', true, CAST(0.4 AS DOUBLE));
(1, 'one', true, 0.1),
(2, 'to', false, 0.2),
(4, 'for', true, 0.4);
"""
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment