mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-02-26 01:13:23 +00:00
Parameters with casing not following standard
This commit is contained in:
@@ -16,12 +16,12 @@ function ConvertFrom-ExcelToSQLInsert {
|
||||
[switch]$NoHeader,
|
||||
[switch]$DataOnly,
|
||||
[switch]$ConvertEmptyStringsToNull,
|
||||
[switch]$UseMSSQLSyntax
|
||||
[switch]$UseMsSqlSyntax
|
||||
)
|
||||
|
||||
$null = $PSBoundParameters.Remove('TableName')
|
||||
$null = $PSBoundParameters.Remove('ConvertEmptyStringsToNull')
|
||||
$null = $PSBoundParameters.Remove('UseMSSQLSyntax')
|
||||
$null = $PSBoundParameters.Remove('UseMsSqlSyntax')
|
||||
|
||||
$params = @{} + $PSBoundParameters
|
||||
|
||||
@@ -29,7 +29,7 @@ function ConvertFrom-ExcelToSQLInsert {
|
||||
param($propertyNames, $record)
|
||||
|
||||
$ColumnNames = "'" + ($PropertyNames -join "', '") + "'"
|
||||
if($UseMSSQLSyntax) {
|
||||
if($UseMsSqlSyntax) {
|
||||
$ColumnNames = "[" + ($PropertyNames -join "], [") + "]"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user