Update of /cvsroot/phpweather/phpweather/db
In directory usw-pr-cvs1:/tmp/cvs-serv5596/db
Modified Files:
db_pgsql.php
Log Message:
Patched to make it work :)
Index: db_pgsql.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db/db_pgsql.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- db_pgsql.php 2001/07/05 16:03:57 1.2
+++ db_pgsql.php 2001/12/19 10:04:39 1.3
@@ -153,7 +153,7 @@
* @see update_metar()
*/
function insert_metar($station, $metar, $timestamp) {
- $this->query("INSERT INTO metars SET station = '$station', metar = '$metar', timestamp = FROM_UNIXTIME($timestamp)");
+ $this->query("INSERT INTO " . $this->properties['db_metars'] . " SET station = '$station', metar = '$metar', timestamp = FROM_UNIXTIME($timestamp)");
}
@@ -167,7 +167,7 @@
* @see insert_metar()
*/
function update_metar($station, $metar, $timestamp) {
- $this->query("UPDATE metars SET metar = '$metar', timestamp = '$timestamp' WHERE station = '$station'");
+ $this->query("UPDATE " . $this->properties['db_metars'] . " SET metar = '$metar', timestamp = '$timestamp' WHERE station = '$station'");
}
/**
@@ -178,7 +178,7 @@
* @access public
*/
function get_metar($station) {
- $this->query("SELECT metar, timestamp FROM metars WHERE station = '$station'");
+ $this->query("SELECT metar, timestamp FROM " . $this->properties['db_metars'] . " WHERE station = '$station'");
return $this->fetch_row();
}
|