cvs: pear /MDB/MDB fbsql.php
| From: | Lukas Smith | Date: | Sat, 18 Jan 2003 15:10:44 +0000 |
| Subject: | cvs: pear /MDB/MDB fbsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8369@lists.php.net to get a copy of this message | ||
lsmith Sat Jan 18 10:10:44 2003 EDT
Modified files:
/pear/MDB/MDB fbsql.php
Log:
cs fixes
and changed VAECHAR to VARCHAR (a quick look in the frontbase manual revealed no VAECHAR .. so I
hope that this was correct Frank)
Index: pear/MDB/MDB/fbsql.php
diff -u pear/MDB/MDB/fbsql.php:1.3 pear/MDB/MDB/fbsql.php:1.4
--- pear/MDB/MDB/fbsql.php:1.3 Thu Jan 16 11:08:05 2003
+++ pear/MDB/MDB/fbsql.php Sat Jan 18 10:10:43 2003
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: fbsql.php,v 1.3 2003/01/16 16:08:05 lsmith Exp $
+// $Id: fbsql.php,v 1.4 2003/01/18 15:10:43 lsmith Exp $
//
require_once 'MDB/Common.php';
@@ -219,7 +219,7 @@
*/
function autoCommit($auto_commit)
{
- $this->debug("AutoCommit: ".($auto_commit ? "On" :
"Off"));
+ $this->debug('AutoCommit: '.($auto_commit ? 'On' :
'Off'));
if (!isset($this->supported['Transactions'])) {
return $this->raiseError(MDB_ERROR_UNSUPPORTED, '', '',
'Auto-commit transactions: transactions are not in use');
@@ -263,7 +263,7 @@
*/
function commit()
{
- $this->debug("Commit Transaction");
+ $this->debug('Commit Transaction');
if (!isset($this->supported['Transactions'])) {
return $this->raiseError(MDB_ERROR_UNSUPPORTED, '', '',
'Commit transactions: transactions are not in use');
@@ -290,7 +290,7 @@
*/
function rollback()
{
- $this->debug("Rollback Transaction");
+ $this->debug('Rollback Transaction');
if (!isset($this->supported['Transactions'])) {
return $this->raiseError(MDB_ERROR_UNSUPPORTED, '', '',
'Rollback transactions: transactions are not in use');
@@ -432,7 +432,7 @@
}
if($limit > 0) {
if (!$ismanip) {
- eregi_replace("SELECT", "SELECT TOP($first,$limit)",
$query)";
+ eregi_replace('SELECT', "SELECT TOP($first,$limit)", $query);
}
}
@@ -442,8 +442,8 @@
}
}
- // Add ; to the end of the query. This is required by FrontBase
- $query .= ";";
+ // Add ; to the end of the query. This is required by FrontBase
+ $query .= ';';
if ($result = fbsql_query($query, $this->connection)) {
if ($ismanip) {
$this->affected_rows = fbsql_affected_rows($this->connection);
@@ -902,9 +902,9 @@
{
if (isset($field['length'])) {
$length = $field['length'];
- $type = "VAECHAR($length)";
+ $type = "VARCHAR($length)";
} else {
- $type = "VAECHAR(32768)";
+ $type = 'VARCHAR(32768)';
}
return ("$name $type".
(isset($field['notnull']) ? ' NOT NULL' : ''));
@@ -943,7 +943,7 @@
$type = "BLOB($length)";
}
else {
- $type = "BLOB(32768)";
+ $type = 'BLOB(32768)';
}
return ("$name $type".
(isset($field['notnull']) ? ' NOT NULL' : ''));
@@ -1401,7 +1401,7 @@
* [0]['type'] field type
* [0]['len'] field length
* [0]['flags'] field flags
- * ['order'][field name] index of field named "field name"
+ * ['order'][field name] index of field named 'field name'
* The last one is used, if you have a field name, but no index.
* Test: if (isset($result['meta']['myfield'])) { ...
*