cvs: pear /DB/DB ibase.php
| From: | Daniel Convissor | Date: | Sat, 03 Jan 2004 21:07:35 +0000 |
| Subject: | cvs: pear /DB/DB ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15317@lists.php.net to get a copy of this message | ||
danielc Sat Jan 3 16:07:35 2004 EDT
Modified files:
/pear/DB/DB ibase.php
Log:
Allow ! as placeholder in prepare(). Bug 91.
Index: pear/DB/DB/ibase.php
diff -u pear/DB/DB/ibase.php:1.21 pear/DB/DB/ibase.php:1.22
--- pear/DB/DB/ibase.php:1.21 Sat Jan 3 02:01:46 2004
+++ pear/DB/DB/ibase.php Sat Jan 3 16:07:35 2004
@@ -16,7 +16,7 @@
// | Author: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.21 2004/01/03 07:01:46 danielc Exp $
+// $Id: ibase.php,v 1.22 2004/01/03 21:07:35 danielc Exp $
//
// Bugs:
@@ -29,7 +29,7 @@
* extension.
*
* @package DB
- * @version $Id: ibase.php,v 1.21 2004/01/03 07:01:46 danielc Exp $
+ * @version $Id: ibase.php,v 1.22 2004/01/03 21:07:35 danielc Exp $
* @category Database
* @author Sterling Hughes <sterling@php.net>
*/
@@ -342,7 +342,7 @@
*/
function prepare($query)
{
- $tokens = split('[\&\?]', $query);
+ $tokens = split('[&?!]', $query);
$token = 0;
$types = array();
$qlen = strlen($query);
@@ -354,6 +354,9 @@
case '&':
$types[$token++] = DB_PARAM_OPAQUE;
break;
+ case '!':
+ $types[$token++] = DB_PARAM_MISC;
+ break;
}
}
$newquery = strtr($query, '&', '?');