cvs: pear /MDB pgsql.php

From: Date: Sat, 20 Jul 2002 19:24:07 +0000
Subject: cvs: pear /MDB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5212@lists.php.net to get a copy of this message
lsmith Sat Jul 20 15:24:07 2002 EDT Modified files: /pear/MDB pgsql.php Log: shortend the method names of fetch*Result to fetch* Index: pear/MDB/pgsql.php diff -u pear/MDB/pgsql.php:1.15 pear/MDB/pgsql.php:1.16 --- pear/MDB/pgsql.php:1.15 Fri Jul 19 10:46:23 2002 +++ pear/MDB/pgsql.php Sat Jul 20 15:24:06 2002 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ -// $Id: pgsql.php,v 1.15 2002/07/19 14:46:23 lsmith Exp $ +// $Id: pgsql.php,v 1.16 2002/07/20 19:24:06 lsmith Exp $ // MDB postgresql driver. @@ -453,7 +453,7 @@ * * @access public */ - function retrieveLOB($lob) + function retrieveLob($lob) { if (!isset($this->lobs[$lob])) { return ($this->raiseError(DB_ERROR_INVALID, NULL, NULL, "Retrieve LOB: did not specified a valid lob")); @@ -490,9 +490,9 @@ * * @access public */ - function endOfResultLOB($lob) + function endOfResultLob($lob) { - $lobresult = $this->retrieveLOB($lob); + $lobresult = $this->retrieveLob($lob); if (MDB::isError($lobresult)) { return ($lobresult); } @@ -514,9 +514,9 @@ * * @access public */ - function readResultLOB($lob, &$data, $length) + function readResultLob($lob, &$data, $length) { - $lobresult = $this->retrieveLOB($lob); + $lobresult = $this->retrieveLob($lob); if (MDB::isError($lobresult)) { return ($lobresult); } @@ -540,7 +540,7 @@ * * @access public */ - function destroyResultLOB($lob) + function destroyResultLob($lob) { if (isset($this->lobs[$lob])) { if (isset($this->lobs[$lob]["Value"])) { @@ -554,7 +554,7 @@ } // }}} - // {{{ fetchClobResult() + // {{{ fetchClob() /** * fetch a clob value from a result set * @@ -567,13 +567,13 @@ * * @access public */ - function fetchClobResult($result, $row, $field) + function fetchClob($result, $row, $field) { - return ($this->fetchLOBResult($result, $row, $field)); + return ($this->fetchLob($result, $row, $field)); } // }}} - // {{{ fetchBlobResult() + // {{{ fetchBlob() /** * fetch a blob value from a result set * @@ -585,9 +585,9 @@ * * @access public */ - function fetchBLOBResult($result, $row, $field) + function fetchBlob($result, $row, $field) { - return ($this->FetchLOBResult($result, $row, $field)); + return ($this->fetchLob($result, $row, $field)); } // }}} @@ -700,7 +700,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ getClobDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character * large object type field to be used in statements like CREATE TABLE. @@ -724,13 +724,13 @@ * @return string DBMS specific SQL code portion that should be used to * declare the specified field. */ - function getCLOBDeclaration($name, &$field) + function getClobDeclaration($name, &$field) { return ("$name OID" . (isset($field["notNULL"]) ? " NOT NULL" : "")); } // }}} - // {{{ getBLOBDeclaration() + // {{{ getBlobDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large * object type field to be used in statements like CREATE TABLE. @@ -754,7 +754,7 @@ * @return string DBMS specific SQL code portion that should be used to * declare the specified field. */ - function getBLOBDeclaration($name, &$field) + function getBlobDeclaration($name, &$field) { return ("$name OID" . (isset($field["notNULL"]) ? " NOT NULL" : "")); } @@ -898,8 +898,8 @@ $success = 1; if (($lo = pg_locreate($this->connection))) { if (($handle = pg_loopen($this->connection, $lo, "w"))) { - while (!endOfLOB($lob)) { - if (readLOB($lob, $data, $this->options['lob_buffer_length']) < 0) { + while (!endOfLob($lob)) { + if (readLob($lob, $data, $this->options['lob_buffer_length']) < 0) { $this->raiseError(DB_ERROR, NULL, NULL, "Get LOB field value: " . lobError($lob)); $success = 0; break;

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