summaryrefslogtreecommitdiff
path: root/FS/FS/h_Common.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-03-03 10:25:22 +0000
committerivan <ivan>2005-03-03 10:25:22 +0000
commit8f11e2a03067829dc5f8cd6ae7fa0e3f249d61c1 (patch)
tree093dba96581d2774dba658ebd4fe3a27ffa88c58 /FS/FS/h_Common.pm
parenta1e71c875ad297e0ab11de5c595b937b2e498f84 (diff)
clean up some harmless but scary "Multiple records in scalar search" warnings w/history table searches
Diffstat (limited to 'FS/FS/h_Common.pm')
-rw-r--r--FS/FS/h_Common.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/FS/FS/h_Common.pm b/FS/FS/h_Common.pm
index 58ead88..a7bb937 100644
--- a/FS/FS/h_Common.pm
+++ b/FS/FS/h_Common.pm
@@ -69,6 +69,20 @@ sub sql_h_search {
}
+=item sql_h_searchs END_TIMESTAMP [ START_TIMESTAMP ]
+
+Like sql_h_search, but limited to the single most recent record (before
+END_TIMESTAMP)
+
+=cut
+
+sub sql_h_searchs {
+ my $self = shift;
+ my($select, $where, $cacheobj, $as) = $self->sql_h_search(@_);
+ $where .= ' LIMIT 1';
+ ($select, $where, $cacheobj, $as);
+}
+
=back
=head1 BUGS