CVS: phpweather/db pw_db_pgsql.php,1.4,1.5
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-05-20 16:04:39
|
Update of /cvsroot/phpweather/phpweather/db In directory usw-pr-cvs1:/tmp/cvs-serv32682 Modified Files: pw_db_pgsql.php Log Message: I did some tests with speed_test.php and it turned out, that it didn't make any difference wether or not I cached the number of rows in the result set. Index: pw_db_pgsql.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db/pw_db_pgsql.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- pw_db_pgsql.php 20 May 2002 15:47:08 -0000 1.4 +++ pw_db_pgsql.php 20 May 2002 16:04:36 -0000 1.5 @@ -27,18 +27,6 @@ /** - * The number of rows in the current result set. - * - * We store this here because we have to refer to it again and again - * in the fetch_row() and fetch_array() methods. - * - * @var integer - * @access private - */ - //var $num_rows = 0; - - - /** * This constructor makes sure that the PostgreSQL extension is * loaded and then calls the parent constructor. * @@ -162,9 +150,6 @@ $this->result_id = pg_exec($this->link_id, $query) or $this->error("SQL-statement failed: $query<br>PostgreSQL said " . pg_errormessage()); - - /* We can now update $this->num_rows: */ - //$this->num_rows = pg_numrows($this->result_id); /* The next row is the first row: */ $this->next_row = 0; @@ -213,7 +198,6 @@ */ function num_rows() { return pg_numrows($this->result_id); - //return $this->num_rows; } |