projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/rs/syntax
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Task
/
Retrieve.pm
diff --git
a/lib/ZOOM/IRSpy/Task/Retrieve.pm
b/lib/ZOOM/IRSpy/Task/Retrieve.pm
index
095fe02
..
4d7a8c5
100644
(file)
--- a/
lib/ZOOM/IRSpy/Task/Retrieve.pm
+++ b/
lib/ZOOM/IRSpy/Task/Retrieve.pm
@@
-1,4
+1,4
@@
-# $Id: Retrieve.pm,v 1.3 2006-11-02 16:11:44 mike Exp $
+# $Id: Retrieve.pm,v 1.6 2007-05-09 11:05:30 mike Exp $
package ZOOM::IRSpy::Task::Retrieve;
package ZOOM::IRSpy::Task::Retrieve;
@@
-31,6
+31,9
@@
sub new {
my $this = $class->SUPER::new(@_);
$this->{rs} = $rs;
$this->{index0} = $index0;
my $this = $class->SUPER::new(@_);
$this->{rs} = $rs;
$this->{index0} = $index0;
+ # Save initial record-syntax for render()'s benefit
+ $this->{syntax} = $this->{options}->{preferredRecordSyntax};
+
return $this;
}
return $this;
}
@@
-40,6
+43,8
@@
sub run {
$this->set_options();
my $conn = $this->conn();
$this->set_options();
my $conn = $this->conn();
+ $conn->connect($conn->option("host"));
+
my $rs = $this->{rs};
my $index0 = $this->{index0};
$this->irspy()->log("irspy_task", $conn->option("host"),
my $rs = $this->{rs};
my $index0 = $this->{index0};
$this->irspy()->log("irspy_task", $conn->option("host"),
@@
-53,7
+58,7
@@
sub run {
sub render {
my $this = shift();
sub render {
my $this = shift();
- my $syntax = $this->{options}->{preferredRecordSyntax};
+ my $syntax = $this->{syntax};
$syntax = defined $syntax ? "'$syntax'" : "undef";
return ref($this) . "(" . $this->{index0} . ", $syntax)";
}
$syntax = defined $syntax ? "'$syntax'" : "undef";
return ref($this) . "(" . $this->{index0} . ", $syntax)";
}