Support multiple statements

This commit is contained in:
Mel O'Hagan 2022-09-22 16:36:19 +01:00
parent b6e646338a
commit 1afc0fbdf8
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ interface MySQLConfig {
ssl?: { [key: string]: any }
rejectUnauthorized: boolean
typeCast: Function
multipleStatements: boolean
}
const SCHEMA: Integration = {
@ -136,6 +137,7 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
delete config.rejectUnauthorized
this.config = {
...config,
multipleStatements: true,
typeCast: function (field: any, next: any) {
if (
field.type == "DATETIME" ||