Skip to content
Snippets Groups Projects
Commit 7afb5c37 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch '#1073266-LeadimportSQLSysntaxerror' into '2021.0'

#1073266-LeadimportSQLSysntaxerror

See merge request xrm/basic!644
parents 0ef8e090 ecd5a235
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,12 @@ LeadImportUtils.insertTable = function(pDataFields, pDataTypes, pValues, pTable,
TableValues[i] = pValues[Fields[i]];
}
db.insertData(pTable, Fields, Types, TableValues);
if (db.getDatabaseType(vars.getString("$sys.dbalias")) == db.DBTYPE_MARIADB10)
{
pTable = "`" + pTable + "`";
}
db.insertData(pTable, Fields, Types, TableValues);
return pValues[TableID];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment