diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-11-01 08:46:05 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-11-01 08:46:05 +0100 |
commit | c28b13eaeca04574994d5a7c2320bbce4c63450f (patch) | |
tree | babb19b528e46b85bbbdc59a78313d422f5bcd5a /testdb.php | |
parent | 1421a2207c0130030233e901d6f5055f54417e68 (diff) |
add new TableRpmRepo->getMaxStamp() method and use it
Diffstat (limited to 'testdb.php')
-rw-r--r-- | testdb.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,8 @@ require "include/main.php"; require "class/CommonTable.php"; +date_default_timezone_set('Europe/Paris'); + $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); $pear = new TableRRepo($db); @@ -66,6 +68,8 @@ if ($row = $rpm->get(888)) { } else { echo "not found\n"; } +echo "Last update : ".date("r", $rpm->getMaxStamp())."\n"; + $up = new TableUpstream($db); $up->delete(array('name'=>'foo','type'=>'test')); $rec = $up->record('test','bar','foo','1.0',true); |