Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PG::Error to be created without arguments #467

Merged
merged 1 commit into from Jun 21, 2022

Conversation

larskanis
Copy link
Collaborator

Not used in our code, but some users do this and it used to work in pg<1.4.0.

Fixes #466

Not used in our code, but some users do this and it used to work in pg<1.4.0.

Fixes ged#466
@larskanis larskanis merged commit 766c175 into ged:master Jun 21, 2022
@larskanis larskanis deleted the fix_466 branch June 21, 2022 14:13
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Jun 23, 2022
pg 1.4.0 was released with a breaking change to the interface for the PG::Error
class:

ged/ruby-pg@91b00d0

It was repored in ged/ruby-pg#466
and fixed in ged/ruby-pg#467 but not yet released.

1.4.0  was breaking our pg logical spec as seen below
 1) PglogicalSubscription#backlog returns nil if error raised inside
     Failure/Error:
       MiqRegionRemote.with_remote_connection(host, port || 5432, user, decrypted_password, dbname, "postgresql", connect_timeout) do |conn|
         yield conn
       end
     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./app/models/pglogical_subscription.rb:294:in `with_remote_connection'
     # ./app/models/pglogical_subscription.rb:289:in `remote_region_lsn'
     # ./app/models/pglogical_subscription.rb:104:in `backlog'
     # ./spec/models/pglogical_subscription_spec.rb:495:in `block (3 levels) in <top (required)>'
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Jun 23, 2022
pg 1.4.0 was released with a breaking change to the interface for the PG::Error
class:

ged/ruby-pg@91b00d0

It was reported in ged/ruby-pg#466
and fixed in ged/ruby-pg#467 but not yet released.

1.4.0  was breaking our pg logical spec as seen below
 1) PglogicalSubscription#backlog returns nil if error raised inside
     Failure/Error:
       MiqRegionRemote.with_remote_connection(host, port || 5432, user, decrypted_password, dbname, "postgresql", connect_timeout) do |conn|
         yield conn
       end
     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./app/models/pglogical_subscription.rb:294:in `with_remote_connection'
     # ./app/models/pglogical_subscription.rb:289:in `remote_region_lsn'
     # ./app/models/pglogical_subscription.rb:104:in `backlog'
     # ./spec/models/pglogical_subscription_spec.rb:495:in `block (3 levels) in <top (required)>'
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Jun 24, 2022
1.4.0 led to ged/ruby-pg#466
and was fixed in ged/ruby-pg#467

Since 1.4.1 is now released and fixes the issue, we can safely unlock pg except
for version 1.4.0.
iv1111 pushed a commit to iv1111/manageiq that referenced this pull request Jun 28, 2022
pg 1.4.0 was released with a breaking change to the interface for the PG::Error
class:

ged/ruby-pg@91b00d0

It was reported in ged/ruby-pg#466
and fixed in ged/ruby-pg#467 but not yet released.

1.4.0  was breaking our pg logical spec as seen below
 1) PglogicalSubscription#backlog returns nil if error raised inside
     Failure/Error:
       MiqRegionRemote.with_remote_connection(host, port || 5432, user, decrypted_password, dbname, "postgresql", connect_timeout) do |conn|
         yield conn
       end
     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./app/models/pglogical_subscription.rb:294:in `with_remote_connection'
     # ./app/models/pglogical_subscription.rb:289:in `remote_region_lsn'
     # ./app/models/pglogical_subscription.rb:104:in `backlog'
     # ./spec/models/pglogical_subscription_spec.rb:495:in `block (3 levels) in <top (required)>'
iv1111 pushed a commit to iv1111/manageiq that referenced this pull request Jun 28, 2022
1.4.0 led to ged/ruby-pg#466
and was fixed in ged/ruby-pg#467

Since 1.4.1 is now released and fixes the issue, we can safely unlock pg except
for version 1.4.0.
GilbertCherrie pushed a commit to GilbertCherrie/manageiq that referenced this pull request Jul 7, 2023
pg 1.4.0 was released with a breaking change to the interface for the PG::Error
class:

ged/ruby-pg@91b00d0

It was reported in ged/ruby-pg#466
and fixed in ged/ruby-pg#467 but not yet released.

1.4.0  was breaking our pg logical spec as seen below
 1) PglogicalSubscription#backlog returns nil if error raised inside
     Failure/Error:
       MiqRegionRemote.with_remote_connection(host, port || 5432, user, decrypted_password, dbname, "postgresql", connect_timeout) do |conn|
         yield conn
       end
     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./app/models/pglogical_subscription.rb:294:in `with_remote_connection'
     # ./app/models/pglogical_subscription.rb:289:in `remote_region_lsn'
     # ./app/models/pglogical_subscription.rb:104:in `backlog'
     # ./spec/models/pglogical_subscription_spec.rb:495:in `block (3 levels) in <top (required)>'
GilbertCherrie pushed a commit to GilbertCherrie/manageiq that referenced this pull request Jul 7, 2023
1.4.0 led to ged/ruby-pg#466
and was fixed in ged/ruby-pg#467

Since 1.4.1 is now released and fixes the issue, we can safely unlock pg except
for version 1.4.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking change in pg 1.4.0? PG::Error signature changed
1 participant