From 47bf67f8af8dfa8afbac17a726301e5f391ed012 Mon Sep 17 00:00:00 2001
From: Kaitmazian Maksim <m.kaitmazian@picodata.io>
Date: Wed, 15 Nov 2023 23:58:06 +0300
Subject: [PATCH] remove redundant cast and sync parsing error message

---
 pgproto/test/simple_query_test.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pgproto/test/simple_query_test.py b/pgproto/test/simple_query_test.py
index 4a4d781692..77a7eba473 100644
--- a/pgproto/test/simple_query_test.py
+++ b/pgproto/test/simple_query_test.py
@@ -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);
     """
     )
 
-- 
GitLab