cvs: pear /MDB2 package.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php /MDB2/MDB2/Driver/Function Common.php mssql.php
mysql.php mysqli.php oci8.php

From: Date: Fri, 12 Jan 2007 11:29:12 +0000
Subject: cvs: pear /MDB2 package.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php /MDB2/MDB2/Driver/Function Common.php mssql.php
mysql.php mysqli.php oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44204@lists.php.net to get a copy of this message
quipo Fri Jan 12 11:29:12 2007 UTC Modified files: /pear/MDB2/MDB2/Driver/Function Common.php mssql.php mysql.php mysqli.php oci8.php /pear/MDB2 package.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php Log: implemented guid() in the Function module [globally unique identifier] (thanks to mario dot adam at schaeffler dot com)

http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Function/Common.php?r1=1.16&r2=1.17&diff_format=u Index: pear/MDB2/MDB2/Driver/Function/Common.php diff -u pear/MDB2/MDB2/Driver/Function/Common.php:1.16 pear/MDB2/MDB2/Driver/Function/Common.php:1.17 --- pear/MDB2/MDB2/Driver/Function/Common.php:1.16 Mon Aug 7 20:15:21 2006 +++ pear/MDB2/MDB2/Driver/Function/Common.php Fri Jan 12 11:29:12 2007 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.16 2006/08/07 20:15:21 lsmith Exp $ +// $Id: Common.php,v 1.17 2007/01/12 11:29:12 quipo Exp $ // /** @@ -206,5 +206,26 @@ } // }}} + // {{{ guid() + + /** + * Returns global unique identifier + * + * @return string to get global unique identifier + * @access public + */ + function guid() + { + $db =& $this->getDBInstance(); + if (PEAR::isError($db)) { + return $db; + } + + $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, + 'method not implemented', __FUNCTION__); + return $error; + } + + // }}} } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Function/mssql.php?r1=1.13&r2=1.14&diff_format=u Index: pear/MDB2/MDB2/Driver/Function/mssql.php diff -u pear/MDB2/MDB2/Driver/Function/mssql.php:1.13 pear/MDB2/MDB2/Driver/Function/mssql.php:1.14 --- pear/MDB2/MDB2/Driver/Function/mssql.php:1.13 Mon Jun 12 21:48:43 2006 +++ pear/MDB2/MDB2/Driver/Function/mssql.php Fri Jan 12 11:29:12 2007 @@ -42,7 +42,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.13 2006/06/12 21:48:43 lsmith Exp $ +// $Id: mssql.php,v 1.14 2007/01/12 11:29:12 quipo Exp $ // require_once 'MDB2/Driver/Function/Common.php'; @@ -144,6 +144,20 @@ } // }}} + // {{{ guid() + + /** + * Returns global unique identifier + * + * @return string to get global unique identifier + * @access public + */ + function guid() + { + return 'NEWID()'; + } + + // }}} } // }}} -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Function/mysql.php?r1=1.10&r2=1.11&diff_format=u Index: pear/MDB2/MDB2/Driver/Function/mysql.php diff -u pear/MDB2/MDB2/Driver/Function/mysql.php:1.10 pear/MDB2/MDB2/Driver/Function/mysql.php:1.11 --- pear/MDB2/MDB2/Driver/Function/mysql.php:1.10 Mon Jun 12 21:48:43 2006 +++ pear/MDB2/MDB2/Driver/Function/mysql.php Fri Jan 12 11:29:12 2007 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.10 2006/06/12 21:48:43 lsmith Exp $ +// $Id: mysql.php,v 1.11 2007/01/12 11:29:12 quipo Exp $ // require_once 'MDB2/Driver/Function/Common.php'; @@ -100,5 +100,21 @@ $args = func_get_args(); return "CONCAT(".implode(', ', $args).")"; } + + // }}} + // {{{ guid() + + /** + * Returns global unique identifier + * + * @return string to get global unique identifier + * @access public + */ + function guid() + { + return 'UUID()'; + } + + // }}} } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Function/mysqli.php?r1=1.12&r2=1.13&diff_format=u Index: pear/MDB2/MDB2/Driver/Function/mysqli.php diff -u pear/MDB2/MDB2/Driver/Function/mysqli.php:1.12 pear/MDB2/MDB2/Driver/Function/mysqli.php:1.13 --- pear/MDB2/MDB2/Driver/Function/mysqli.php:1.12 Mon Jun 12 21:48:43 2006 +++ pear/MDB2/MDB2/Driver/Function/mysqli.php Fri Jan 12 11:29:12 2007 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.12 2006/06/12 21:48:43 lsmith Exp $ +// $Id: mysqli.php,v 1.13 2007/01/12 11:29:12 quipo Exp $ // require_once 'MDB2/Driver/Function/Common.php'; @@ -108,5 +108,21 @@ $args = func_get_args(); return "CONCAT(".implode(', ', $args).")"; } + + // }}} + // {{{ guid() + + /** + * Returns global unique identifier + * + * @return string to get global unique identifier + * @access public + */ + function guid() + { + return 'UUID()'; + } + + // }}} } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Function/oci8.php?r1=1.13&r2=1.14&diff_format=u Index: pear/MDB2/MDB2/Driver/Function/oci8.php diff -u pear/MDB2/MDB2/Driver/Function/oci8.php:1.13 pear/MDB2/MDB2/Driver/Function/oci8.php:1.14 --- pear/MDB2/MDB2/Driver/Function/oci8.php:1.13 Wed Jun 14 11:30:41 2006 +++ pear/MDB2/MDB2/Driver/Function/oci8.php Fri Jan 12 11:29:12 2007 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.13 2006/06/14 11:30:41 lsmith Exp $ +// $Id: oci8.php,v 1.14 2007/01/12 11:29:12 quipo Exp $ require_once 'MDB2/Driver/Function/Common.php'; @@ -151,5 +151,19 @@ } // }}}} + // {{{ guid() + + /** + * Returns global unique identifier + * + * @return string to get global unique identifier + * @access public + */ + function guid() + { + return 'SYS_GUID()'; + } + + // }}}} } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.230&r2=1.231&diff_format=u Index: pear/MDB2/package.php diff -u pear/MDB2/package.php:1.230 pear/MDB2/package.php:1.231 --- pear/MDB2/package.php:1.230 Thu Jan 11 10:05:47 2007 +++ pear/MDB2/package.php Fri Jan 12 11:29:12 2007 @@ -15,6 +15,8 @@ - fixed bug #9800: when the php extension for the driver fails to load, the error is not propagated correctly and the script dies - propagate errors in the Datatype module +- implemented guid() in the Function module [globally unique identifier] + (thanks to mario dot adam at schaeffler dot com) - phpdoc fixes - added tests http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mssql.php?r1=1.72&r2=1.73&diff_format=u Index: pear/MDB2/package_mssql.php diff -u pear/MDB2/package_mssql.php:1.72 pear/MDB2/package_mssql.php:1.73 --- pear/MDB2/package_mssql.php:1.72 Thu Jan 11 14:31:36 2007 +++ pear/MDB2/package_mssql.php Fri Jan 12 11:29:12 2007 @@ -40,6 +40,8 @@ - migrated to package.xml version 2 - implemented getTableFieldDefinition() in the Reverse module - implemented getTableIndexDefinition() in the Reverse module +- implemented getTriggerDefinition() in the Reverse module +- implemented guid() in the Function module [globally unique identifier] - phpdoc fixes open todo items: http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.92&r2=1.93&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.92 pear/MDB2/package_mysql.php:1.93 --- pear/MDB2/package_mysql.php:1.92 Sat Jan 6 21:56:52 2007 +++ pear/MDB2/package_mysql.php Fri Jan 12 11:29:12 2007 @@ -13,6 +13,7 @@ - setCharset() now uses "SET NAMES" instead of "SET character_set_client" - select the mysql database in listUsers() in the Manager module - added error codes for MySQL 5 (patch by Adam Harvey) +- implemented guid() in the Function module [globally unique identifier] - phpdoc fixes note: http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysqli.php?r1=1.95&r2=1.96&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.95 pear/MDB2/package_mysqli.php:1.96 --- pear/MDB2/package_mysqli.php:1.95 Sat Jan 6 21:56:52 2007 +++ pear/MDB2/package_mysqli.php Fri Jan 12 11:29:12 2007 @@ -13,6 +13,7 @@ - setCharset() now uses "SET NAMES" instead of "SET character_set_client" - select the mysql database in listUsers() in the Manager module - added error codes for MySQL 5 (patch by Adam Harvey) +- implemented guid() in the Function module [globally unique identifier] - phpdoc fixes open todo items: http://cvs.php.net/viewvc.cgi/pear/MDB2/package_oci8.php?r1=1.96&r2=1.97&diff_format=u Index: pear/MDB2/package_oci8.php diff -u pear/MDB2/package_oci8.php:1.96 pear/MDB2/package_oci8.php:1.97 --- pear/MDB2/package_oci8.php:1.96 Tue Dec 19 23:00:52 2006 +++ pear/MDB2/package_oci8.php Fri Jan 12 11:29:12 2007 @@ -8,6 +8,7 @@ $notes = <<<EOT - propagate errors in getTableFieldDefinition() in the Reverse module - implemented getTriggerDefinition() in the Reverse module [experimental] +- implemented guid() in the Function module [globally unique identifier] note: - please use the latest ext/oci8 version from pecl.php.net/oci8
« previous php.pear.cvs (#44204) next »