From 8c1862393302016f512750e98f15646c37c9ee76 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Thu, 21 Dec 2023 13:28:59 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20RawMulti?= =?UTF-8?q?pleSQL()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres_gorm/postgres_gorm_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/postgres_gorm/postgres_gorm_test.go b/postgres_gorm/postgres_gorm_test.go index c0118bde..05663bfa 100644 --- a/postgres_gorm/postgres_gorm_test.go +++ b/postgres_gorm/postgres_gorm_test.go @@ -119,3 +119,16 @@ func TestConnect_WithApplicationName_err(t *testing.T) { t.Error("TestConnect_WithApplicationName_err() error: ", err) } } + +func TestRawMultipleSQL(t *testing.T) { + config.LoadEnv() + GetConnection() + defer CloseConnection() + + TextSQL := "SELECT 1; SELECT 2" + _, err := RawMultipleSQL(Conn, TextSQL) + if err != nil { + t.Error("TestRawMultipleSQL() error: ", err) + } + +}