From 5fdc35c4c7da85c196f41d755df262ffa8ea9bff Mon Sep 17 00:00:00 2001 From: tgarip1957 Date: Wed, 12 Apr 2006 20:45:40 +0000 Subject: [PATCH] SQL syntax corrected --- export/marc-time.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/export/marc-time.pl b/export/marc-time.pl index ab80f8b8ff..d5ea223b4b 100755 --- a/export/marc-time.pl +++ b/export/marc-time.pl @@ -19,11 +19,11 @@ if ($op eq "export") { my $dbh=C4::Context->dbh; my $sth; if ($start_bib && $end_bib) { - $sth=$dbh->prepare("select biblionumber from biblioitems where timestamp >=? and timestamp <=? order by biblionumber"); - $sth->execute($start_bib,$end_bib); + $sth=$dbh->prepare("select biblionumber from biblioitems where timestamp >='$start_bib' and timestamp <='$end_bib' order by biblionumber"); + $sth->execute(); } elsif ($start_bib ) { - $sth=$dbh->prepare("select biblionumber from biblioitems where timestamp >=? order by biblionumber"); - $sth->execute($start_bib); + $sth=$dbh->prepare("select biblionumber from biblioitems where timestamp >='$start_bib' order by biblionumber"); + $sth->execute(); }else { $sth=$dbh->prepare("select biblionumber from biblioitems order by biblionumber"); $sth->execute();