Skip to content

Fix issues where the driver didn't load the postgres adapter #1526

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

Merged
merged 1 commit into from
Aug 3, 2025

Conversation

CloCkWeRX
Copy link
Member

@CloCkWeRX CloCkWeRX commented Aug 3, 2025

If you are running with sqlite only and pass in the right env variables you can end up with:

StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

uninitialized constant PG
/opt/hostedtoolcache/Ruby/3.4.5/x64/bin/bundle:25:in 'Kernel#load'
/opt/hostedtoolcache/Ruby/3.4.5/x64/bin/bundle:25:in '<main>'

Caused by:
NameError: uninitialized constant PG (NameError)

      if conn.is_a?(::PG::Connection)
                    ^^^^
/opt/hostedtoolcache/Ruby/3.4.5/x64/bin/bundle:25:in 'Kernel#load'
/opt/hostedtoolcache/Ruby/3.4.5/x64/bin/bundle:25:in '<main>'

@CloCkWeRX CloCkWeRX added the Bug label Aug 3, 2025
@CloCkWeRX CloCkWeRX merged commit 21070cb into master Aug 3, 2025
8 checks passed
@CloCkWeRX CloCkWeRX deleted the fix-constants branch August 3, 2025 02:23
@CloCkWeRX
Copy link
Member Author

#1017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant