- print STDERR "$target: zeerex='", $rec->{zeerex}, "' = \n",
- $rec->{zeerex}->toString(), "\n";
- ### Write record back to database, if modified.
+ # Write record back to database
+ my $p = $this->{conn}->package();
+ $p->option(action => "specialUpdate");
+ my $xml = $rec->{zeerex}->toString();
+ $p->option(record => $xml);
+ $p->send("update");
+ $p->destroy();
+
+ $p = $this->{conn}->package();
+ $p->send("commit");
+ $p->destroy();
+ if (0) {
+ $xml =~ s/&/&/g;
+ $xml =~ s/</</g;
+ $xml =~ s/>/>/g;
+ print "Updated with xml=<br/>\n<pre>$xml</pre>\n";
+ }