1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-02-15 15:10:29 +02:00

сделал RawMultipleSQL()

This commit is contained in:
Nikitin Aleksandr 2023-12-21 13:28:59 +03:00
parent b53ded4c86
commit 8c18623933

View File

@ -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)
}
}