cvs: pear /MDB2_Schema/MDB2 Schema.php /MDB2_Schema/MDB2/Schema Writer.php
| From: | Lukas Smith | Date: | Fri, 07 Apr 2006 16:41:45 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2 Schema.php /MDB2_Schema/MDB2/Schema Writer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39471@lists.php.net to get a copy of this message | ||
lsmith Fri Apr 7 16:41:45 2006 UTC
Modified files:
/pear/MDB2_Schema/MDB2 Schema.php
/pear/MDB2_Schema/MDB2/Schema Writer.php
Log:
- set error code in raiseError() call
http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.66&r2=1.67&diff_format=u
Index: pear/MDB2_Schema/MDB2/Schema.php
diff -u pear/MDB2_Schema/MDB2/Schema.php:1.66 pear/MDB2_Schema/MDB2/Schema.php:1.67
--- pear/MDB2_Schema/MDB2/Schema.php:1.66 Sun Mar 26 10:11:34 2006
+++ pear/MDB2_Schema/MDB2/Schema.php Fri Apr 7 16:41:45 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Schema.php,v 1.66 2006/03/26 10:11:34 lsmith Exp $
+// $Id: Schema.php,v 1.67 2006/04/07 16:41:45 lsmith Exp $
//
require_once 'MDB2.php';
@@ -374,7 +374,8 @@
{
$database = $this->db->database_name;
if (empty($database)) {
- return $this->raiseError('it was not specified a valid database name');
+ return $this->raiseError(MDB2_SCHEMA_ERROR_INVALID, null, null,
+ 'it was not specified a valid database name');
}
$database_definition = array(
http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/MDB2/Schema/Writer.php?r1=1.25&r2=1.26&diff_format=u
Index: pear/MDB2_Schema/MDB2/Schema/Writer.php
diff -u pear/MDB2_Schema/MDB2/Schema/Writer.php:1.25 pear/MDB2_Schema/MDB2/Schema/Writer.php:1.26
--- pear/MDB2_Schema/MDB2/Schema/Writer.php:1.25 Sun Mar 26 09:54:58 2006
+++ pear/MDB2_Schema/MDB2/Schema/Writer.php Fri Apr 7 16:41:45 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Writer.php,v 1.25 2006/03/26 09:54:58 lsmith Exp $
+// $Id: Writer.php,v 1.26 2006/04/07 16:41:45 lsmith Exp $
//
/**
@@ -279,8 +279,8 @@
$field_name.'" of the table
"'.$table_name);
}
if (!empty($this->valid_types) &&
!array_key_exists($field['type'], $this->valid_types)) {
- return $this->raiseError('type
"'.$field['type'].
- '" is not yet supported');
+ return $this->raiseError(MDB2_SCHEMA_ERROR_UNSUPPORTED, null,
null,
+ 'type "'.$field['type'].'"
is not yet supported');
}
$buffer.= "$eol <field>$eol
<name>$field_name</name>$eol <type>";
$buffer.= $field['type']."</type>$eol";