commit bbcaa098531f036c2f8d885d0411dc0d9c10f7bb
parent 803e8d2efcef144dac2241ee1967eee985b7b5c2
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Mon, 3 Nov 2014 22:11:14 -0700
price_scraper: error out if table creation bombs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/price_scraper.pl b/price_scraper.pl
@@ -31,7 +31,7 @@ $dbh->do("create table if not exists prices(" .
"vendor text not null, " .
"price int not null, " .
"duration int, " .
- "primary key(date, part_num, vendor, price))");
+ "primary key(date, part_num, vendor, price))") or die $DBI::errstr;
my $log = get_log("pricechart_scrapes");
printf $log "%-15s [", $part_num;