Lines 588-594
sub execute_query {
Link Here
|
588 |
|
588 |
|
589 |
my $dbh = C4::Context->dbh; |
589 |
my $dbh = C4::Context->dbh; |
590 |
|
590 |
|
591 |
$dbh->do( 'UPDATE saved_sql SET last_run = NOW() WHERE id = ?', undef, $report_id ) if $report_id; |
591 |
if ($report_id) { |
|
|
592 |
my $now = output_pref( { dt => dt_from_string(), dateformat => 'iso' } ); |
593 |
$dbh->do( 'UPDATE saved_sql SET last_run = ? WHERE id = ?', undef, $now, $report_id ); |
594 |
} |
592 |
|
595 |
|
593 |
my $sth = $dbh->prepare($sql); |
596 |
my $sth = $dbh->prepare($sql); |
594 |
eval { |
597 |
eval { |
595 |
- |
|
|