cvs: pear /MDB mysql.php

From: Date: Fri, 17 May 2002 14:11:17 +0000
Subject: cvs: pear /MDB mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3893@lists.php.net to get a copy of this message
lsmith Fri May 17 10:11:17 2002 EDT Modified files: /pear/MDB mysql.php Log: moved comment for nextResult() to the proper place Index: pear/MDB/mysql.php diff -u pear/MDB/mysql.php:1.5 pear/MDB/mysql.php:1.6 --- pear/MDB/mysql.php:1.5 Thu May 16 15:30:00 2002 +++ pear/MDB/mysql.php Fri May 17 10:11:16 2002 @@ -2,7 +2,7 @@ /* * mysql.php * - * @(#) $Header: /usr/repository/pear/MDB/mysql.php,v 1.5 2002/05/16 19:30:00 lsmith Exp $ + * @(#) $Header: /usr/repository/pear/MDB/mysql.php,v 1.6 2002/05/17 14:11:16 lsmith Exp $ * */ @@ -120,9 +120,9 @@ $limit = $this->selected_row_limit; $this->first_selected_row = $this->selected_row_limit = 0; if (!strcmp($this->database_name, "")) { + //return ($this->setError("Query","it was not specified a valid database name to select")); return $this->raiseError(DB_ERROR_NODBSELECTED); } - //return ($this->setError("Query","it was not specified a valid database name to select")); if (!$this->connect()) { return (0); } @@ -138,9 +138,9 @@ $this->affected_rows = mysql_affected_rows($this->connection); } } else { + //return ($this->setError("Query",mysql_error($this->connection))); return $this->raiseError(DB_ERROR); } - //return ($this->setError("Query",mysql_error($this->connection))); return ($result); } @@ -202,7 +202,7 @@ if ($keys == 0) { return ($this->setError("Replace","it were not specified which fields are keys")); } - return ($this->Query("REPLACE INTO $table ($query) VALUES($values)")); + return ($this->Query("REPLACE INTO $table ($query) VALUES ($values)")); } function endOfResult($result) @@ -724,31 +724,32 @@ // new methods for PEAR // ******************** - function nextResult($result) - { - return false; - } - - function mysqlRaiseError($errno = null) - { - if ($errno == null) { - $errno = $this->errorCode(mysql_errno($this->connection)); - } - return $this->raiseError($errno, null, null, null, @mysql_error($this->connection)); - } - /** * Move the internal mysql result pointer to the next available result + * Currently not supported * - * @param a valid fbsql result resource + * @param a valid result resource * * @access public * * @return true if a result is available otherwise return false */ - - function tableInfo($result, $mode = null) { + + function nextResult($result) + { + return false; + } + + function mysqlRaiseError($errno = null) + { + if ($errno == null) { + $errno = $this->errorCode(mysql_errno($this->connection)); + } + return $this->raiseError($errno, null, null, null, @mysql_error($this->connection)); + } + + function tableInfo($result, $mode = null) { $count = 0; $id = 0; $res = array();

« previous php.pear.cvs (#3893) next »