cvs: pear /MDB2 package_ibase.php /MDB2/MDB2/Driver/Manager ibase.php
| From: | Lorenzo Alberton | Date: | Sun, 04 Mar 2007 21:23:29 +0000 |
| Subject: | cvs: pear /MDB2 package_ibase.php /MDB2/MDB2/Driver/Manager ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44953@lists.php.net to get a copy of this message | ||
quipo Sun Mar 4 21:23:29 2007 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Manager ibase.php
/pear/MDB2 package_ibase.php
Log:
listFunctions() in the Manager module now lists UDFs and stored procedures
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Manager/ibase.php?r1=1.100&r2=1.101&diff_format=u
Index: pear/MDB2/MDB2/Driver/Manager/ibase.php
diff -u pear/MDB2/MDB2/Driver/Manager/ibase.php:1.100 pear/MDB2/MDB2/Driver/Manager/ibase.php:1.101
--- pear/MDB2/MDB2/Driver/Manager/ibase.php:1.100 Sat Dec 9 14:27:31 2006
+++ pear/MDB2/MDB2/Driver/Manager/ibase.php Sun Mar 4 21:23:29 2007
@@ -2,7 +2,7 @@
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5 |
// +----------------------------------------------------------------------+
-// | Copyright (c) 1998-2006 Manuel Lemos, Tomas V.V.Cox, |
+// | Copyright (c) 1998-2007 Manuel Lemos, Tomas V.V.Cox, |
// | Stig. S. Bakken, Lukas Smith, Lorenzo Alberton |
// | All rights reserved. |
// +----------------------------------------------------------------------+
@@ -42,7 +42,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.100 2006/12/09 14:27:31 quipo Exp $
+// $Id: ibase.php,v 1.101 2007/03/04 21:23:29 quipo Exp $
require_once 'MDB2/Driver/Manager/Common.php';
@@ -655,7 +655,7 @@
// {{{ listFunctions()
/**
- * list all functions in the current database
+ * list all functions (and stored procedures) in the current database
*
* @return mixed array of function names on success, a MDB2 error on failure
* @access public
@@ -667,7 +667,9 @@
return $db;
}
- $query = 'SELECT RDB$FUNCTION_NAME FROM RDB$FUNCTIONS WHERE RDB$SYSTEM_FLAG IS
NULL';
+ $query = 'SELECT RDB$FUNCTION_NAME FROM RDB$FUNCTIONS WHERE RDB$SYSTEM_FLAG IS NULL
+ UNION
+ SELECT RDB$PROCEDURE_NAME FROM RDB$PROCEDURES';
$result = $db->queryCol($query);
if (PEAR::isError($result)) {
return $result;
http://cvs.php.net/viewvc.cgi/pear/MDB2/package_ibase.php?r1=1.114&r2=1.115&diff_format=u
Index: pear/MDB2/package_ibase.php
diff -u pear/MDB2/package_ibase.php:1.114 pear/MDB2/package_ibase.php:1.115
--- pear/MDB2/package_ibase.php:1.114 Wed Feb 28 16:05:45 2007
+++ pear/MDB2/package_ibase.php Sun Mar 4 21:23:29 2007
@@ -19,6 +19,7 @@
an error
- added a 'nativetype_map_callback' option to map native data declarations back to
custom data types (thanks to Andrew Hill).
+- listFunctions() in the Manager module now lists UDFs and stored procedures
- phpdoc fixes
EOT;