projects
/
gnucomo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
384dd57
)
Fix for PHP 4.2
author
arjen
<arjen>
Sat, 18 Jan 2003 08:40:29 +0000
(08:40 +0000)
committer
arjen
<arjen>
Sat, 18 Jan 2003 08:40:29 +0000
(08:40 +0000)
src/phpclasses/db.postgres.php
patch
|
blob
|
history
diff --git
a/src/phpclasses/db.postgres.php
b/src/phpclasses/db.postgres.php
index
1ca3302
..
234f832
100644
(file)
--- a/
src/phpclasses/db.postgres.php
+++ b/
src/phpclasses/db.postgres.php
@@
-57,6
+57,7
@@
}
function query ($inp_sql_query) {
}
function query ($inp_sql_query) {
+
/* This function executes a query against the active database connection
* INPUT:
* - $inp_sql_query: The is the string with the SQL to execute
/* This function executes a query against the active database connection
* INPUT:
* - $inp_sql_query: The is the string with the SQL to execute
@@
-64,6
+65,7
@@
*/
$this->db_result = pg_exec ($this->db_connection, $inp_sql_query);
$this->db_row_number = 0;
*/
$this->db_result = pg_exec ($this->db_connection, $inp_sql_query);
$this->db_row_number = 0;
+
}
function fetch_row() {
}
function fetch_row() {
@@
-74,7
+76,7
@@
* VALUES SET :
*/
unset ($this->db_result_row);
* VALUES SET :
*/
unset ($this->db_result_row);
- if (pg_num
_
rows($this->db_result) < $this->db_row_number) {
+ if (pg_numrows($this->db_result) < $this->db_row_number) {
$this->db_row_number=-1;
return "FALSE";
} else {
$this->db_row_number=-1;
return "FALSE";
} else {