mirror of
https://github.com/ManyakRus/starter.git
synced 2025-02-19 19:59:50 +02:00
сделал RawMultipleSQL()
This commit is contained in:
parent
b53ded4c86
commit
8c18623933
@ -119,3 +119,16 @@ func TestConnect_WithApplicationName_err(t *testing.T) {
|
|||||||
t.Error("TestConnect_WithApplicationName_err() error: ", err)
|
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)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user