- コミット日時:
- 2010/10/25 18:21:47 (14 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/perl/db/Pg.pl
r124 r132 74 74 'updatem2pfiletable.4' => "INSERT into foltia_mp4files values (?, ?)", 75 75 76 'xmltv2foltia.replaceepg.1' => "SELECT * FROM foltia_epg WHERE enddatetime > ? AND startdatetime < ? AND ontvchannel = ? AND startdatetime > ?",76 'xmltv2foltia.replaceepg.1' => "SELECT * FROM foltia_epg WHERE enddatetime > ? AND startdatetime < ? AND ontvchannel = ?", 77 77 'xmltv2foltia.replaceepg.2' => "SELECT * FROM foltia_epg WHERE startdatetime = ? AND enddatetime = ? AND ontvchannel = ? ", 78 78 'xmltv2foltia.commitdb.1' => "DELETE FROM foltia_epg WHERE epgid = ?", trunk/install/perl/xmltv2foltia.pl
r130 r132 224 224 $foltiaendtime = substr($foltiaendtime,0,12); # 12桁 200508072355 225 225 226 #$sth = $dbh->prepare($stmt{'xmltv2foltia.replaceepg.1'}); 227 $sth = $dbh->prepare("SELECT * FROM foltia_epg WHERE enddatetime > ? AND startdatetime < ? AND ontvchannel = ?"); 228 226 $sth = $dbh->prepare($stmt{'xmltv2foltia.replaceepg.1'}); 229 227 my $now = &epoch2foldate(time()); 230 #$sth->execute($foltiastarttime , $foltiaendtime , $ontvepgchannel,$now);231 228 $sth->execute($foltiastarttime , $foltiaendtime , $ontvepgchannel); 232 229 while (@data = $sth->fetchrow_array()) {