Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions postgresql/resource_postgresql_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func executeCommands(db *DBConnection, commands []string, tries int, backoffDela
func executeBatch(db *DBConnection, commands []string) error {
for _, command := range commands {
log.Printf("[DEBUG] Executing %s", command)
_, err := db.Query(command)

_, err := db.Exec(command)
log.Printf("[DEBUG] Result %s: %v", command, err)
if err != nil {
log.Println("[DEBUG] Error catched:", err)
if _, rollbackError := db.Query("ROLLBACK"); rollbackError != nil {
Expand Down
Loading