From: Steinar H. Gunderson Date: Fri, 18 Feb 2005 18:04:20 +0000 (+0000) Subject: Switch SQL host from cirkus to altersex, to get PostgreSQL 7.4 X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=b02d3ccc4e39dcee7611a8a48666cd5c53787406 Switch SQL host from cirkus to altersex, to get PostgreSQL 7.4 --- diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index 71bd966..03a9496 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -25,7 +25,7 @@ int main(int argc, char **argv) { GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1); try { - pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_"); + pqxx::connection conn("dbname=ccbs host=altersex.samfundet.no user=ccbs password=GeT|>>B_"); ExitTrigger et(conn, "bs_tournament_changed"); sleep(1); diff --git a/html/ccbs.pm b/html/ccbs.pm index faaae89..21a19a8 100755 --- a/html/ccbs.pm +++ b/html/ccbs.pm @@ -22,7 +22,7 @@ sub print_see_other { sub db_connect { $ccbs_dbdebug = defined(shift) ? 1 : 0; - my $dbh = DBI->connect("dbi:Pg:dbname=ccbs;host=sql.samfundet.no", "ccbs", "GeT|>>B_") + my $dbh = DBI->connect("dbi:Pg:dbname=ccbs;host=altersex.samfundet.no", "ccbs", "GeT|>>B_") or die "Couldn't connect to database"; $dbh->{RaiseError} = 1; return $dbh;