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

Can't locate object method "SELECT" via package "plan" (perhaps you forgot to load "plan"?) at #29

Open
xenoterracide opened this issue Mar 27, 2020 · 3 comments

Comments

@xenoterracide
Copy link

getting this error

Can't locate object method "SELECT" via package "plan" (perhaps you forgot to load "plan"?) at 

honestly, I think it's a red herring, I don't see how it could even be connecting to the database without the password.

pg_prove --host localhost --dbname mydb --ext sql --recurse
Status: Downloaded newer image for xenoterracide/pg_prove:latest
./root/.cpan/build/TAP-Parser-SourceHandler-pgTAP-3.35-0/t/bin/psql ...... 
No subtests run 
./root/.cpan/build/TAP-Parser-SourceHandler-pgTAP-3.35-0/t/scripts/psql .. 
No subtests run 
Can't locate object method "SELECT" via package "plan" (perhaps you forgot to load "plan"?) at ./t/can-connect.sql line 2.
./t/can-connect.sql ...................................................... 

copy and pasted from the documentation, this is can-connect.sql

BEGIN;
SELECT plan(1);

-- Run the tests.
SELECT pass( 'My test passed, w00t!' );

-- Finish the tests and clean up.
SELECT * FROM finish();
ROLLBACK;
@theory
Copy link
Owner

theory commented Mar 29, 2020

Sounds like it think your test files are Perl, as that's a Perl error, not a PostgreSQL error.

Also not really a pgTAP issue, but pg_prove.

@xenoterracide
Copy link
Author

@theory oh pg_prove is a different repo? that repo name... tho... could move over there

@theory theory transferred this issue from theory/pgtap Apr 1, 2020
@theory
Copy link
Owner

theory commented Oct 24, 2020

Does it still happen with the official Docker image?

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

No branches or pull requests

2 participants