use strict;
use FS::Record qw(dbdef);
+use Carp qw(confess);
=head1 NAME
my $pkey = dbdef->table($table)->primary_key
or die "can't (yet) search history table $table without a primary key";
+ unless ($end) {
+ confess 'Called sql_h_search without END_TIMESTAMP';
+ }
+
my $notcancelled = '';
if ( scalar(@_) && $_[0] ) {
$notcancelled = "AND 0 = ( SELECT COUNT(*) FROM $table as notdel