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

dbiprof: Can't set --number to "all" #140

Open
rwfranks opened this issue Oct 27, 2024 · 0 comments
Open

dbiprof: Can't set --number to "all" #140

rwfranks opened this issue Oct 27, 2024 · 0 comments

Comments

@rwfranks
Copy link

Transcribed verbatim from CPAN RT#81576, warts and all.

Fri Nov 30 09:05:10 2012 DOHERTY [...] cpan.org - Ticket created
Subject: dbiprof: Can't set --number to "all"

When you try to set number to "all", which is supposed to show all
results, instead of a finite number, GetOptions tells you that it
expected a number, as required by the 'number=i' spec.

mike@doherty:~ $ dbiprof --number=all
Value "all" invalid for option number (number expected)

You'll probably have to use your own sub to make the behaviour match the
documentation. Or, use 0 to mean "all results." Note that you can't pass
either 0 or all to DBI::ProfileData::report to get all the reports -
you'll need to get the actual number via DBI::ProfileData::count.

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

1 participant