cvs: pear /DB_DataObject DataObject.php /DB_DataObject/docs example.ini
| From: | Alan Knowles | Date: | Thu, 22 Jan 2004 03:03:59 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php /DB_DataObject/docs example.ini | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15865@lists.php.net to get a copy of this message | ||
alan_k Wed Jan 21 22:03:59 2004 EDT
Modified files:
/pear/DB_DataObject DataObject.php
/pear/DB_DataObject/docs example.ini
Log:
add keep_query_after_fetch option, document the sequence option in the ini file.
http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.198&r2=1.199&ty=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.198 pear/DB_DataObject/DataObject.php:1.199
--- pear/DB_DataObject/DataObject.php:1.198 Wed Jan 21 21:45:33 2004
+++ pear/DB_DataObject/DataObject.php Wed Jan 21 22:03:59 2004
@@ -20,7 +20,7 @@
* @package DB_DataObject
* @category DB
*
- * $Id: DataObject.php,v 1.198 2004/01/22 02:45:33 alan_k Exp $
+ * $Id: DataObject.php,v 1.199 2004/01/22 03:03:59 alan_k Exp $
*/
/* =====================================================================================
@@ -477,7 +477,7 @@
if (@$_DB_DATAOBJECT['CONFIG']['debug']) {
$this->debug("{$this->__table} DONE", "fetchrow",2);
}
- if (isset($this->_query)) {
+ if (isset($this->_query) &&
!@$_DB_DATAOBJECT['CONFIG']['keep_query_after_fetch']) {
unset($this->_query);
}
return true;
http://cvs.php.net/diff.php/pear/DB_DataObject/docs/example.ini?r1=1.3&r2=1.4&ty=u
Index: pear/DB_DataObject/docs/example.ini
diff -u pear/DB_DataObject/docs/example.ini:1.3 pear/DB_DataObject/docs/example.ini:1.4
--- pear/DB_DataObject/docs/example.ini:1.3 Sat Dec 13 01:18:22 2003
+++ pear/DB_DataObject/docs/example.ini Wed Jan 21 22:03:59 2004
@@ -35,6 +35,15 @@
+;
+;sequence_{tablename} = {column}
+; specify which column is autoincremented/nextval'd
+;sequence_{tablename} = {column}:{sequence_name}
+; specify which column is nextval'd, and the sequence name to use for the column.
+
+
+
+
; the generator settings (optional)
extends_location =
@@ -72,4 +81,9 @@
;quote_entities = 0
; Quote table and column names when building queries - this relies on the
-; quoteEntity method being available in PEAR::DB (it should be introduced in 1.5 final or 1.6)
\ No newline at end of file
+; quoteEntity method being available in PEAR::DB (it should be introduced in 1.5 final or 1.6)
+
+
+;keep_query_after_fetch = 0
+; From 1.4 on the query building will be cleared after a fetch(1.5), or find(1.4)
+; To disable this behavior set this to 1
\ No newline at end of file