Skip Menu |

This queue is for tickets about the DBI-Shell CPAN distribution.

Report information
The Basics
Id: 24538
Status: resolved
Priority: 0/
Queue: DBI-Shell

People
Owner: DLAMBLEY [...] cpan.org
Requestors: hjp [...] hjp.at
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 11.93
Fixed in: (no value)



Subject: /spool not implemented
Help describes a /spool command: fiwdev@dbi:Oracle:WF> /help Defined commands, in alphabetical order: [/;]chistory display command history [/;]clear erase the current statement [/;]col_info display columns that exist in current database [...] [/;]spool send all output to a disk file. usage: spool file name or spool off. [...] but when you try to invoke it you get an error message: fiwdev@dbi:Oracle:WF> /spool katlos.txt DBI::Shell: spool failed: Can't locate object method "do_spool" via package "DBI::Shell" at /usr/lib/perl5/site_perl/5.8.5/DBI/Shell.pm line 672. The do_spool method indeed doesn't seem to exist in DBI-Shell-1.93.
The problem still exists in DBI::Shell 11.95. While the code tries to execute do_spool() (as described by Peter), it should try to execute spool_on() or spool_off(), respectively, which do exist.
From: hjp [...] hjp.at
On Tue Aug 03 11:08:20 2010, GWS wrote: Show quoted text
> The problem still exists in DBI::Shell 11.95. > While the code tries to execute do_spool() (as described by Peter), it > should try to execute spool_on() or spool_off(), respectively, which do > exist.
I forgot that I hadn't closed that bug yet. It isn't a bug, the functionality has been moved to a plugin (DBI::Shell::Spool), and the plugin system is somewhat underdocumented. You can load the plugin by putting { 'plug-ins' => { 'pre-init' => [ 'DBI::Shell::Spool', ], }, }; in your ~/.dbish_config
From: hjp [...] hjp.at
On Tue Aug 03 17:17:34 2010, hjp@hjp.at wrote: Show quoted text
> I forgot that I hadn't closed that bug yet.
And now I remember why I didn't close it: I have absolutely no idea how to do it.
Am Di 03. Aug 2010, 17:17:34, hjp@hjp.at schrieb: Show quoted text
> I forgot that I hadn't closed that bug yet.
Ah, danke, Peter! Show quoted text
> > It isn't a bug, the functionality has been moved to a plugin > (DBI::Shell::Spool), and the plugin system is somewhat underdocumented.
:-)
On Wed Aug 04 09:57:55 2010, GWS wrote: Show quoted text
> Am Di 03. Aug 2010, 17:17:34, hjp@hjp.at schrieb:
> > I forgot that I hadn't closed that bug yet.
> Ah, danke, Peter!
> > > > It isn't a bug, the functionality has been moved to a plugin > > (DBI::Shell::Spool), and the plugin system is somewhat underdocumented.
> :-)
I have added a more helpful error message, https://repo.or.cz/perl-DBI-Shell.git/commitdiff/b7eb3217664aa2db26e071a710b1666a868cbaf0 Cheers, Dave