Skip to content

Commit 78450ca

Browse files
committed
Debugging SaveChages() Method
1 parent 6727b1d commit 78450ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/private/SqlQueryClass.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,14 +771,15 @@ class SqlQueryDataSet {
771771
$table.Result[0].Tables[0].AcceptChanges()
772772
# $tableM.Result[0].AcceptChanges()
773773
$table.IsDirty = $false
774+
$table.SqlDataAdapter.Fill($table.Result[0].Tables[0])
774775
} else {
775776
Write-Host "No changes to $($table.TableName) were update."
776777
}
777778
} Catch {
778779
Write-Host ("$($table.TableName).SaveChanges() Error: ({0})" -f ($error[0] | Out-String).TrimEnd()) -ForegroundColor Red
779780
} Finally {
780781
$This.CloseConnection()
781-
$This.Execute($table)
782+
# $This.Execute($table)
782783
}
783784
If ($This.DisplayResults) {
784785
Return $table.Result[0].Tables[0]

0 commit comments

Comments
 (0)