There is an issue with the ConvertFromExcelToSQLInsert where a quote in the text will not be converted properly and will cause invalid insert statements to be created, this commit makes the correction to handle the scenario.
This commit is contained in:
Ben Becker
2019-11-20 09:32:32 -05:00
parent 5617a960ec
commit e132755061

View File

@@ -108,7 +108,7 @@ function ConvertFrom-ExcelToSQLInsert {
'NULL'
}
else {
"'" + (($record.$propertyName.ToString()) -replace "'","''") + "'"
"'" + (($record.$propertyName) -replace "'","''") + "'"
}
}
$targetValues = ($values -join ", ")