aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxenoxeno <xeno@ydb.tech>2023-05-24 13:30:15 +0300
committerxenoxeno <xeno@ydb.tech>2023-05-24 13:30:15 +0300
commit7179ba7ca682cded8bda94bd1bfa9cf887821c1c (patch)
treecea4529fafb11396b006d8fbb3d8893cb9935e64
parente39ab42935cf9ac9c1be81e37e425192f7f5ad68 (diff)
downloadydb-7179ba7ca682cded8bda94bd1bfa9cf887821c1c.tar.gz
specfify some server version
-rw-r--r--ydb/core/pgproxy/pg_connection.cpp1
-rw-r--r--ydb/core/pgproxy/pg_proxy_ut.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/pgproxy/pg_connection.cpp b/ydb/core/pgproxy/pg_connection.cpp
index a09821e0bb..c895aa866d 100644
--- a/ydb/core/pgproxy/pg_connection.cpp
+++ b/ydb/core/pgproxy/pg_connection.cpp
@@ -31,6 +31,7 @@ public:
{"DateStyle", "ISO"},
{"IntervalStyle", "postgres"},
{"integer_datetimes", "on"},
+ {"server_version", "14.5 (ydb stable-23-3)"},
};
TSocketBuffer BufferOutput;
TActorId DatabaseProxy;
diff --git a/ydb/core/pgproxy/pg_proxy_ut.cpp b/ydb/core/pgproxy/pg_proxy_ut.cpp
index cadcf9c0e9..0387a1719a 100644
--- a/ydb/core/pgproxy/pg_proxy_ut.cpp
+++ b/ydb/core/pgproxy/pg_proxy_ut.cpp
@@ -70,7 +70,7 @@ Y_UNIT_TEST_SUITE(TPGTest) {
UNIT_ASSERT_VALUES_EQUAL(authRequest->InitialMessage->GetClientParams()["user"], "user");
actorSystem.Send(new NActors::IEventHandle(handle->Sender, database, new NPG::TEvPGEvents::TEvAuthResponse()));
TString received = Receive(s);
- UNIT_ASSERT_VALUES_EQUAL(received, "520000000800000000530000001B496E74657276616C5374796C6500706F737467726573005300000012446174655374796C650049534F0053000000197365727665725F656E636F64696E670055544638005300000019696E74656765725F6461746574696D6573006F6E005300000019636C69656E745F656E636F64696E670055544638005A0000000549");
+ UNIT_ASSERT_VALUES_EQUAL(received, "520000000800000000530000002A7365727665725F76657273696F6E0031342E35202879646220737461626C652D32332D332900530000001B496E74657276616C5374796C6500706F737467726573005300000012446174655374796C650049534F005300000019636C69656E745F656E636F64696E6700555446380053000000197365727665725F656E636F64696E670055544638005300000019696E74656765725F6461746574696D6573006F6E005A0000000549");
}
}