pennylane-hq / activerecord-adapter-redshift

Other
6 stars 27 forks source link

reconnect! (called from verify!) fails with "wrong number of arguments (given 1, expected 0) (ArgumentError)" #19

Closed jerryclinesmith closed 7 months ago

jerryclinesmith commented 7 months ago

In 7.1, reconnect! added an argument (restore_transactions: false), and according to the comments in AbstractAdapter, no longer needs to be implemented, just have a private reconnect method (which is already there).

So you might be able to simply remove the current reconnect! method for it to work.

To get the error:

connection.disconnect!
connection.verify!