lib/ppcurses/actions/InsertSQLDataAction.rb in ppcurses-0.0.21 vs lib/ppcurses/actions/InsertSQLDataAction.rb in ppcurses-0.0.22

- old
+ new

@@ -35,29 +35,29 @@ self.print_line(user_display_sql) proceed = GetBooleanAction.new('Proceed? ') proceed.set_parent_action(self) proceed.set_window(@win) - proceed.execute() + proceed.execute did_insert = false if proceed.data == '1' self.print_line('') begin prep_statement = @db.prepare(@sql) prep_statement.bind_params(data_array) - prep_statement.execute() - prep_statement.close() + prep_statement.execute + prep_statement.close did_insert = true self.print_success_line('Execution successful') rescue SQLite3::Exception => e self.print_error_line('Exception occurred') self.print_error_line(e.message) ensure self.print_line('') self.print_line('< Press any key to continue > ') - @win.getch() + @win.getch end end did_insert