head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.8 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.2 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.2.0.2 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.1.0.6 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.4 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.2 pkgsrc-2008Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2009.01.19.20.14.00; author abs; state dead; branches; next 1.2; 1.2 date 2008.10.19.18.36.19; author adrianp; state Exp; branches; next 1.1; 1.1 date 2008.07.13.17.55.38; author tonnerre; state Exp; branches; next ; desc @@ 1.3 log @Updated databases/pear-MDB2_Driver_pgsql to 1.5.0b2 1.5.0b2 - fixed bug #12117: disconnect() does not work as documented - fixed bug #13481: getTableConstraintDefinition() may return incomplete results - fixed bug #13877: UNIQUE index not always recognized as constraint - fixed bug #14292: alterTable() cannot change column type when no implicit cast is defined - fixed bug #14510: getTableFieldDefinition() does not unquote defaults - fixed bug #14828: unixtimestamp() generates invalid SQL for non-constant argument - fixed bug #15056: tableInfo does not work with pgsql schemas (added support to table schemas to Manager module) 1.5.0b1 - request #12731: added truncateTable() in the Manager module - request #12732: added vacuum() in the Manager module for OPTIMIZE/VACUUM TABLE abstraction - request #12800: added alterDatabase() in the Manager module - fixed bug #12846: missing escape in getSequenceName() on PostgreSQL 8.2.4 [thanks to Stephane Berthelot] - fixed bug #12920: added new error info and fixed escape method if connection doesn't exist [afz] - fixed bug #12922: use standaloneQuery() in alterDatabase() [afz] - fixed bug #12924: correctly handle internal expected errors even with custom error handling - added standaloneQuery() and databaseExists() - fixed bug #13112: the Reverse module does not know the timestamptz data type - request #13106: added unixtimestamp() in the Function module - fixed bug #13281: list FOREIGN KEY constraints in listTableConstraints() in the Manager module - fixed bug #13356: added float4 to _mapNativeDatatype() - fixed query in getTableConstraintDefinition() for FK constraints in the Reverse module (thanks to Andre Restivo) 1.5.0a2 - fixed bug #12376: getTableConstraintDefinition() in the Reverse module uses incorrect column number in certain cases (thanks to Dennis Birne) - request #12338: added 'disable_smart_seqname' option to make improved getSequenceName() behaviour optional (thanks to Dennis Birne) (@@see bug #9106) - request #12012: added collation support in createDatabase() 1.5.0a1 - initial support for FOREIGN KEY and CHECK constraints in the Reverse and Manager modules - fixed bug #10986: Using more random statement names (request #11625) - request #11297: added support for "schema.table" (or "owner.table") notation in the Reverse module (related to bug #11207) - fixed bug #11428: propagate quote() errors with invalid data types - fixed bug in MDB2_Statement_pgsql::_execute(), called property of invalid object - fixed bug #11624: getSequenceName() returning incorrect results with multiple schemas and 'SET search_path' - fixed bug #11652: failed prepared queries containing the "::type" style of casting - fixed bug #11694: remove data type cast from DEFAULT value in getTableFieldDefinition() in the Reverse module - fixed bug #11753: NOTICEs in alterTable() in the Manager module - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x - fixed some E_STRICT errors with PHP5 - fixed bug #12083: createTable() in the Manager module now returns MDB2_OK on success, as documented - fixed bug #12269: tableInfo() in the Reverse module detect 'clob' data type as first option @ text @$NetBSD: patch-ab,v 1.2 2008/10/19 18:36:19 adrianp Exp $ --- MDB2/Driver/pgsql.php.orig 2007-05-03 19:07:38.000000000 +0000 +++ MDB2/Driver/pgsql.php @@@@ -1351,7 +1351,7 @@@@ class MDB2_Statement_pgsql extends MDB2_ } $value = $this->values[$parameter]; $type = array_key_exists($parameter, $this->types) ? $this->types[$parameter] : null; - if (is_resource($value) || $type == 'clob' || $type == 'blob') { + if (is_resource($value) || $type == 'clob' || $type == 'blob' || $this->options['lob_allow_url_include']) { if (!is_resource($value) && preg_match('/^(\w+:\/\/)(.*)$/', $value, $match)) { if ($match[1] == 'file://') { $value = $match[2]; @@@@ -1432,4 +1432,4 @@@@ class MDB2_Statement_pgsql extends MDB2_ return $result; } } -?> \ No newline at end of file +?> @ 1.2 log @Fix an error that could occurr on some installs. Previously fixed in mysql and pgsql packages - spotted by wiz@@ @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Add patch for pear-MDB2 arbitrary file reading vulnerability (CVE-2007-5934). @ text @d3 1 a3 1 --- MDB2/Driver/pgsql.php.orig 2007-05-03 21:07:38.000000000 +0200 d14 7 @