From c28b13eaeca04574994d5a7c2320bbce4c63450f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 1 Nov 2010 08:46:05 +0100 Subject: add new TableRpmRepo->getMaxStamp() method and use it --- class/CommonTable.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'class/CommonTable.php') diff --git a/class/CommonTable.php b/class/CommonTable.php index ba3f7ad..0aeeb29 100644 --- a/class/CommonTable.php +++ b/class/CommonTable.php @@ -262,6 +262,10 @@ abstract class CommonTable **/ public function request ($crit='') { + if (is_string($crit) && strpos($crit,' ')) { + // $crit is a full SQL command + return new TableIterator ($this->db, $crit); + } return new TableIterator ($this->db, $this->table, $crit); } -- cgit