cvs: pear /MDB mysql.php
| From: | Lukas Smith | Date: | Thu, 16 May 2002 19:30:00 +0000 |
| Subject: | cvs: pear /MDB mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3871@lists.php.net to get a copy of this message | ||
lsmith Thu May 16 15:30:00 2002 EDT
Modified files:
/pear/MDB mysql.php
Log:
shortening of some method names
Index: pear/MDB/mysql.php
diff -u pear/MDB/mysql.php:1.4 pear/MDB/mysql.php:1.5
--- pear/MDB/mysql.php:1.4 Thu May 2 12:36:04 2002
+++ pear/MDB/mysql.php Thu May 16 15:30:00 2002
@@ -2,7 +2,7 @@
/*
* mysql.php
*
- * @(#) $Header: /usr/repository/pear/MDB/mysql.php,v 1.4 2002/05/02 16:36:04 lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/mysql.php,v 1.5 2002/05/16 19:30:00 lsmith Exp $
*
*/
@@ -214,7 +214,7 @@
return ($this->highest_fetched_row[$result] >= $this->numRows($result)-1);
}
- function fetchResult($result, $row, $field)
+ function fetch($result, $row, $field)
{
$this->highest_fetched_row[$result] = max($this->highest_fetched_row[$result], $row);
return (mysql_result($result, $row, $field));
@@ -314,7 +314,7 @@
return (1);
}
- function getClobFieldTypeDeclaration($name, &$field)
+ function getClobDeclaration($name, &$field)
{
if (isset($field["length"])) {
$length = $field["length"];
@@ -337,7 +337,7 @@
return ("$name $type".(isset($field["notnull"]) ? " NOT NULL"
: ""));
}
- function getBLobFieldTypeDeclaration($name, &$field)
+ function getBLobDeclaration($name, &$field)
{
if (isset($field["length"])) {
$length = $field["length"];
@@ -361,27 +361,27 @@
return ("$name $type".(isset($field["notnull"]) ? " NOT NULL"
: ""));
}
- function getIntegerFieldTypeDeclaration($name, &$field)
+ function getIntegerDeclaration($name, &$field)
{
return ("$name ".(isset($field["unsigned"]) ? "INT UNSIGNED"
: "INT").(isset($field["default"]) ? " DEFAULT
".$field["default"] : "").(isset($field["notnull"]) ? " NOT
NULL" : ""));
}
- function getDateFieldTypeDeclaration($name, &$field)
+ function getDateDeclaration($name, &$field)
{
return ($name." DATE".(isset($field["default"]) ? " DEFAULT
'".$field["default"]."'" :
"").(isset($field["notnull"]) ? " NOT NULL" : ""));
}
- function getTimestampFieldTypeDeclaration($name, &$field)
+ function getTimestampDeclaration($name, &$field)
{
return ($name." DATETIME".(isset($field["default"]) ? " DEFAULT
'".$field["default"]."'" :
"").(isset($field["notnull"]) ? " NOT NULL" : ""));
}
- function getTimeFieldTypeDeclaration($name, &$field)
+ function getTimeDeclaration($name, &$field)
{
return ($name." TIME".(isset($field["default"]) ? " DEFAULT
'".$field["default"]."'" :
"").(isset($field["notnull"]) ? " NOT NULL" : ""));
}
- function getFloatFieldTypeDeclaration($name, &$field)
+ function getFloatDeclaration($name, &$field)
{
if (isset($this->options["FixedFloat"])) {
$this->fixed_float = $this->options["FixedFloat"];
@@ -393,7 +393,7 @@
return ("$name DOUBLE".($this->fixed_float ?
"(".($this->fixed_float+2).",".$this->fixed_float.")" :
"").(isset($field["default"]) ? " DEFAULT
".$this->getFloatFieldValue($field["default"]) :
"").(isset($field["notnull"]) ? " NOT NULL" : ""));
}
- function getDecimalFieldTypeDeclaration($name, &$field)
+ function getDecimalDeclaration($name, &$field)
{
return ("$name BIGINT".(isset($field["default"]) ? " DEFAULT
".$this->getDecimalFieldValue($field["default"]) :
"").(isset($field["notnull"]) ? " NOT NULL" : ""));
}
@@ -624,7 +624,7 @@
if (($result = $this->Query("SELECT MAX(sequence) FROM _sequence_$name")) ==
0) {
return (0);
}
- $value = intval($this->fetchResult($result,0,0));
+ $value = intval($this->fetch($result,0,0));
$this->FreeResult($result);
return ($value);
}
@@ -676,7 +676,7 @@
function commitTransaction()
{
- $this->debug("Commit Transaction");
+ $this->debug("Commit Transaction");
if (!isset($this->supported["Transactions"])) {
return ($this->setError("Commit transaction",
"transactions are not in use"));
@@ -690,7 +690,7 @@
function rollbackTransaction()
{
- $this->debug("Rollback Transaction");
+ $this->debug("Rollback Transaction");
if (!isset($this->supported["Transactions"])) {
return ($this->setError("Rollback transaction", "transactions are not
in use"));
}