Version 2.19.2 Released March 12, 2012
- Fix errors when multiple same-named placeholders are used. [GSM]
(CPAN bug #75713)
Version 2.19.1 Released March 10, 2012 (git commit db6f6da00467c7ea28d32c4df97e93ccc4d38f2b)
- Fix crash when passing in an array with undefined elements. [GSM]
Version 2.19.0 Released March 9, 2012 (git commit 05ab092905ce6891ed83e173412ee70d6cdb8cb5)
- Use proper formatting for warn() and croak() (CPAN bug #75642)
[Niko Tyni]
- Fix localized regex in test (CPAN bug #70759)
- Fix for named placeholders (CPAN bug #70953) [Jan Pazdziora]
- Various fixes to the array-marshalling code [Noah Misch, Mark
Stosberg, and David Christensen] (CPAN bug #58552)
- Allow hi-bit chars in dollar-quoted identifiers
[David Christensen] (CPAN bug #73832)
- Have do() return count for things such as CREATE TABLE .. AS SELECT
Will only work on 9.0 or better. (CPAN bug #71073) [Pavel Stehule]
- Better error message when trying to do things post-disconnect [GSM]
- Always respect pg_server_prepare=0 by using PQexec not PQexecParams. [GSM]
- Fix error in async docs (CPAN bug #72812)
- Switch from subversion to git.
git clone git://bucardo.org/dbdpg.git [GSM]
* Fix memory leak when binding arrays
* Fix memory leak with ParamValues
* New cancel() method per DBI spec
* Fix memory leak in handle_old_async (missing PQclear)
* Fix memory leak in pg_db_cancel (missing PQclear)
* Mark pg_getcopydata strings as UTF8 as needed
* Function dequote_bytea returning void should not try to return something
* Fix the number of tests to skip in t/01connect.t when the $DBI_DSN
environment variable lacks a database specification
* Fix algorithm for skipping tests in t/06bytea.t when running on a version
of PostgreSQL lower than 9.0
* Small tweaks to get tests working when compiled against Postgres 7.4
* Fix failing test when run as non-superuser
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.
sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
* Only use lo_import_with_oid if Postgres libraries are 8.4 or better
Changes 2.17.0:
* Do not automatically ROLLBACK on a failed pg_cancel
* Added support for new lo_import_with_oid function.
* Don't limit stored user name to \w in tests
* Allow tests to support versions back to Postgres 7.4
pkgsrc changes:
- Correcting license definition
Upstream changes:
2.16.1 Released January 20, 2010
- Output error messages in UTF-8 as needed. Reported by
Michael Hofmann. [GSM] (CPAN bug #53854)
2.16.0 Released December 17, 2009
- Put in a test for high-bit characters in bytea handling.
[Bryce Nesbitt] (see also CPAN bug #39390)
- Better SQLSTATE code on connection failure (CPAN bug #52863)
[Chris Travers with help from Andrew Gierth]
- Fixed POD escapes (CPAN bug #51856) [FWIE@cpan.org]
2.15.1 Released August 7, 2009
- Release to fix the SIGNATURE file. [GSM]
2.15.0 Released August 4, 2009 (subversion r13164)
- Use PQexecPrepared even when no placeholders (CPAN bug #48155) [GSM]
- Allow execute_array and bind_param_array to take oddly numbered items,
such that DBI will make missing entries undef/null (CPAN bug #39829) [GSM]
- Put single quotes around array literals when quoting arrays via
the quote() method. Per report from David Garamond (CPAN bug #48420) [GSM]
2.14.1 Released July 28, 2009 (subversion r13140)
- Remove invalid bigint assignment [Tim Bunce]
2.14.0 Released July 27, 2009 (subversion r13130)
- Make quoting of int, floats, and names much safer. (CPAN bug #41565) [GSM]
- Make quoting of geometric types respect all valid chars (CPAN bug #41565) [GSM]
- Fix quoting of booleans to respect more Perlish variants (CPAN bug #41565) [GSM]
- Return ints and bools-cast-to-number from the db as true Perlish numbers.
(CPAN bug #47619) [GSM]
- Fix backslash quoting of arrays (CPAN bug #46732) [GSM]
- Fix error when destringifying array starting with '[x:y]='. Per report from
Jeff Trout [GSM]
- Fix problem with foreign_key_info() and NAME_uc (CPAN bug #46109) [GSM]
- Make foreign_key_info() respect FetchHashKeyName (CPAN bug #46103) [GSM]
- Fix Makefile.PL to apply POSTGRES_INCLUDE in a saner way.
(CPAN bug #45769) [GAURAV@cpan.org]
- Improve Win32 README notes [Curtis Jewell]
- Fix spelling error in type_info (CPAN bug #47786) [justin.d.hunter@gmail.com]
- Add functions to support MS VC++ 7.0 (CPAN bug #47858) [Taro Nishino]
- Updating package for p5 module DBD::Pg to 2.13.1 from 2.13.0
- Setting license to artistic-2.0
Upstream changes:
2.13.1 Released April 23, 2009
- Fix leak in pg_warn (CPAN bug #45163) [rweikusat@mssgmbh.com]
- Updating package for p5 module DBD::Pg to 2.13.0
- Set license to artistic-2.0
- Add p5-DBI to DEPENDS (according to META.yml)
Upstream changes:
2.13.0 Released April 13, 2009
- Ensure we always set sqlstate inside of pg_st_prepare_statement
(CPAN bug #44732) [rweikusat@mssgmbh.com]
- When libpq has a connection error, return SQLSTATE 08000 ( "CONNECTION EXCEPTION" )
instead of the more generic 02000 ( "DATA EXCEPTION" ) (CPAN bug #44744)
[rweikusat@mssgmbh.com]
- Fix minor Perl::Critic nags (CPAN bug #44704) (Debian #bug 521969) [GSM]
- Clarify change of $dbh->{Name} behavior (CPAN bug 44985) [GSM]
- updating module to 1.12.0
Upstream changes:
2.12.0 Released March 28, 2009
- Change large object interface from lo_* to pg_lo_* and make them accessible
via direct $dbh calls (e.g. $dbh->pg_lo_import instead of $dbh->func(..,'pg_lo_import').
The use of $dbh->func(... 'lo_*') is deprecated. [GSM] (CPAN bug #44467)
- Throw an exception for large_object functions called when AutoCommit is on,
but allow pg_lo_import and pg_lo_export to work. Reported by Kynn Jones.
[GSM] (CPAN bug #44461)
- Fix a memory leak when parsing returned arrays. Reported by B~A!lint Szilakszi.
[GSM] (CPAN bug #44225)
- Do proper dequoting of boolean arrays [Armando Santos, GSM] (CPAN bug #43768)
- Use pg_get_expr in column_info when available [Adam Sj~A,gren]
- Fix minor bugs in POD docs. [Frank Wiegand] (CPAN bug #44242)
- Fix minor bug in POD docs. [Tim Mattison]
This despite one of the selftests still fail.
Upstream changes:
2.11.8 Released December 28, 2008
- Fix minor bug in t/12placeholders.t test (CPAN bug #41723)
This despite one of the self-tests failing.
Pkgsrc changes:
o Change HOMEPAGE to using search.cpan.org
Upstream changes:
2.11.7 Released December 13, 2008
- Fix placeholder parsing logic (CPAN bug #41582)
2.11.6 Released November 30, 2008 (subversion r12126)
- Only set UTF8 flag on array items after UTF8 test. (CPAN bug #41253)
[Armando Santos]
2.11.5 Released November 24, 2008 (subversion r12102)
- Clear prepared_statement name on failure to prepare: prevents
the wrong error when using prepare_cached. [GSM]
2.11.4 Released November 12, 2008
- Don't set LC_MESSAGES unless superuser in tests. Remove all
language-specific string checking for tests. (CPAN bug #40604)
2.11.3 Released November 3, 2008 (subversion r12031)
- Force LC_MESSAGES to 'C' inside tests (CPAN bug #40604)
- Minor compiler tweaks.
- Fix small POD error (CPAN bug #40209)
- Tweak Perl::Critic policy list (CPAN bug #40130)
2.11.2 Released October 15, 2008 (subversion r11983)
- Fix core dump when invalid placeholders used. (CPAN bug #40075) [GSM]
2.11.1 Released October 14, 2008 (subversion r11980)
- $sth->{ParamTypes} returns 'TYPE' when possible.
2.11.0 Released October 13, 2008 (subversion r11976)
- $sth->{ParamTypes} now returns a hashref per the DBI docs. [GSM]
- Adjustment of Makefile.PL to fix problem with Strawberry Perl.
Thanks to Martin Evan (martin.evans@easysoft.com) and Brian
(elspicyjack@gmail.com) on the dbi-users list.
2.10.7 Released September 22, 2008 (subversion r11869)
- Fix test issue when dbname contains dashes.
[Rainer Tammer]
- Revert META.yml to 1.0, until such time as tools
can handle 1.1 (CPAN bug #39461) [Taro Nishino]
2.10.6 Released September 19, 2008 (subversion r11830)
- Correctly quote all bytea characters. (CPAN bug #39390) [Rod Taylor]
- Prevent core dump when checking $dbh->{standard_conforming_strings}
on older servers. [GSM]
- Skip unicode tests if server is set to 'LATIN1' [GSM]
2.10.5 Released September 16, 2008 (subversion r11800)
- Fix SIGNATURE file
2.10.4 Released September 16, 2008 (subversion r11797)
- Force use of math library when compiling. Per report
of AIX problems by Rainer Tammer.
2.10.3 Released August 31, 2008 (subversion r11706)
- Previous version had wrong SIGNATURE file
2.10.2 Released August 31, 2008 (subversion r11704)
- Fix minor problem in t/99_yaml.t
2.10.1 Released August 31, 2008 (subversion r11697)
- Minor testing fix.
2.10.0 Released August 26, 2008 (subversion r11678)
- Add the 'DBD' trace setting to output only non-DBI trace messages,
and allow 'dbd_verbose' as a connection attribute for the same
effect. [GSM]
- Fix a minor problem with testing against 7.4 databases [GSM]
- Allow multi-statement do() calls with parameters to work if pg_server_prepare
is set to 0 (CPAN bug #38623) [GSM]
2.9.2 Released August 18, 2008 (subversion r11664)
- Empty Postgres arrays should return empty Perl arrays, not undef.
(CPAN bug #38552) [David E. Wheeler]
2.9.1 Released August 17, 2008 (subversion r11660)
- Return undef when mapping Postgres array to Perl array and
the array is empty '{}'. (CPAN bug #38552) [GSM]
- Minor documentation improvements. [GSM]
2.9.0 Released August 3, 2008 (subversion r11624)
- Add support for database handle attribute "ReadOnly". This allows
use of $dbh->{ReadOnly} = 1 to enforce read only mode at
the server level. [GSM]
- Move PQexec structures to statement handle, to prevent
excessive malloc and free within execute function. [GSM]
- Add more attribute tests, improve testing system. [GSM]
- Many documentation improvements. [GSM]
- Win32 build improvements [T.J. Ferraro]
2.8.7 Released July 24, 2008 (subversion r11582)
- Modify test scripts to work better on FreeBSD boxes. [GSM]
- Much documentation improvement and POD tweaking. [GSM]
2.8.6 Released July 21, 2008 (subversion r11558)
- More testing improvements to increase odds of all tests being
run, especially when testing as root. [GSM]
2.8.5 Released July 13, 2008 (subversion r11529)
- Fix an obscure bug in which a coredump occurs if client_min_messages
is set to DEBUG3 or greater, and we then exit without disconnecting
while AutoCommit is off. The new behavior is to simply not attempt to
output the debugging information about the final 'rollback'. [GSM]
- More documentation improvements. [GSM]
2.8.4 Released July 10, 2008 (subversion r11520)
- Minor Perl::Critic test adjustments. [GSM]
- Documentation enhancements. [GSM]
- Yet more minor testing tweaks. [GSM]
2.8.3 Released July 6, 2008 (subversion r11495)
- Minor testing functionality tweaks, lots of test cleanups, minor doc enhancements. [GSM]
2.8.2 Released June 29, 2008 (subversion r11466)
- Minor testing tweaks, doc fixes. [GSM]
2.8.1 Released June 11, 2008 (subversion r11417)
- Force testing to use a custom socket dir, to avoid
permission problems. Thanks to Frank Wiegand for
help in uncovering this. [GSM]
2.8.0 Released June 1, 2008 (subversion r11366)
- Added in payload strings for LISTEN/NOTIFY in 8.4
via $dbh->pg_notifies() [GSM]
- Fixed problem preventing some pg_type bind_arrays
from working [GSM]
- Fix tests in t.04misc.t to handle Windows newlines.
(CPAN bug #36237) [Ian Macdonald]
- Clean up get_info() information. [GSM]
2.7.2 Released May 14, 2008 (subversion r11269)
- Handle embedded commas in quotes properly when destringifying
arrays.(CPAN bug #35862) [GSM]
- Fix typo in docs with trace_parser_flags() (Martin J. Evans)
- More testing tweaks [GSM]
2.7.1 Released May 11, 2008 (subversion r11250)
- Yet more minor testing tweaks. [GSM]
2.7.0 Released May 10, 2008 (subversion r11239)
- Have $dbh->quote() return E'' when server is >= 8.1 and string contains
backslashes. Fixes any problems with standard_conforming_strings.
(CPAN bug #27538) [GSM]
2.6.6 Released May 7, 2008 (subversion r11214)
- Fix minor problem in t/99_spellcheck.t [GSM]
2.6.5 Released May 7, 2008 (subversion r11209)
- Add spell checker to tests. [GSM]
- More tweaks to the testing suite. [GSM]
2.6.4 Released May 2, 2008 (subversion r11186)
- More tweaks to the test suite. [GSM]
2.6.3 Released May 1, 2008 (subversion r11169)
- Minor tweaks to the test suite. [GSM]
2.6.2 Released April 30, 2008 (subversion r11161)
- Fix coredump when pg_getcopydata copies 0 rows into a
freshly created var. (CPAN bug #35556) [David Harris]
- Allow 'make test' create a test database from scratch if
it cannot find an existing one to use. [GSM]
2.6.1 Released April 22, 2008 (subversion r11133)
- Don't free placeholder section, fixes problem when using
more than one named placeholder with the same name.
(CPAN bug #35303) [GSM]
2.6.0 Released April 16, 2008 (subversion r11095)
- Make pg_notifies a true function, so that you can now
use $dbh->pg_notifies instead of $dbh->func('pg_notifies') [GSM]
- Various performance improvements [GSM]
- Fix minor build and compilation issues with Strawberry Perl [GSM]
- Add Bundle::DBD::Pg [GSM]
2.5.1 Released April 7, 2008 (subversion r11056)
- Correctly handle negative PID numbers on Win32 systems when
generating prepared statement names (CPAN bug # 34738) [GSM]
2.5.0 Released March 23, 2008 (subversion r10990)
- Add pg_enum_values to $dbh->column_info()
[Dave Rolsky] (CPAN ticket #34351)
- Minor test fixes. [GSM]
2.4.0 Released March 21, 2008 (subversion r10974)
- Remove problematic and unneeded Test::Warn test from 00basic.t.
- Add $sth->{pg_current_row} [GSM]
2.3.0 Released March 19, 2008 (subversion r10951)
- Add $sth->{pg_bound} and $sth->{pg_numbound} [GSM]
- Fix broken call to $sth->{pg_segments} [GSM]
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
Bump PKGREVISION, because the package will gladly build and install
without p5-version, it just won't actually work unless p5-version is
available both at build time and at run time.
2.2.2
- Add parse_trace_flag as statement handle method.
2.2.1
- Fixed memory leaks in dbdimp.c
- Fixed strlen problems in dbdimp.c
- Change local trace_flags to lowercase.
2.1.0
- Add PERL_NO_GET_CONTEXT #define to improve performance on threaded Perls
- Raise the minimum DBI version to 1.52.
- Allow arrayrefs into bind_col
2.0.0
- Make minimum supported server 7.4.
- Overhaul COPY functions: deprecate pg_getline, pg_putline,
and pg_endcopy. The new functions are pg_getcopydata,
pg_getcopydata_async, pg_putcopydata, and pg_putcopyend.
- Add support for arrays: can pass in arrayrefs to execute, and
they are automatically returned as arrays when fetching.
- Add support for asynchronous queries.
- Allow raw transaction statements through - in other words,
do not croak if $dbh->prepare("COMMIT") is attempted.
- Check transaction status after each command, to allow
things such as 'PREPARE TRANSACTION' to work properly.
- Add $dbh->{pg_placeholder_dollaronly} to allow '?' and other symbols
to be used in prepared statements without getting interpreted as
placeholders, i.e. the geometric operator '?#'
- Fix memory leak in bytea quoting.
- Fix memory leak in pg_notifies.
- Fix memory leak when using savepoints.
- Use adbin, not adsrc, when figuring out the sequence name for the
last_insert_id() method. This allows the function to work properly
if the sequence name is changed. Note that {pg_cache=>0} should be
passed to the function if you expect this might happen.
- Use unsigned chars when parsing passed-in queries, preventing UTF-8
strings from ruining the prepare. UTF-16 may still cause problems.
- Fix crash when executing query with two placeholders side by side.
- Skip item if no matching key in foreign_key_info.
- Fix bug in last_insert_id.
- Fix pg_description join in table_info().
- Make sure arrays handle UTF-8 smoothly.
- Force column names to respect utf8-ness.
- Make sure array items are marked as UTF as needed.
- Force SQL_REAL and SQL_NUMERIC to be float8 not float4.
- Allow objects with stringification overloading to work with quote().
- Switch from pow to powf to support AIX compiler issue.
- Add three new columns to column_info, to return unquoted
version: pg_schema, pg_table, and pg_columns. Add all
three to primary_key_info, and the first two to table_info.
- Change $dbh->{User} to $dbh->{Username}
- Change $dbh->{Name} to return the entire DSN string, minus the
'dbi:Pg:' part.
- Allow data_sources to accept optional arguments.
- Add private_attribute_info() method.
- Add SQL_INTERVAL and others to types.c
- Added statistics_info function
- Be much more flexible in test connection options.
- Overhaul test suite, allow tests to be run individually.
- Quick support for named trace level 'SQL'
- Very experimental support for bind_param_inout, use with caution.
1.49
- Thanks to Backcountry.com for sponsoring work on this release. [GSM]
- Add the statement handle attribute ParamTypes, and fix an error
in ParamValues. ParamTypes requires DBI 1.49 or better. [GSM]
- Strip the final newline from error messages, so that die can add
in the line number. (CPAN bug #18900) [GSM]
- Make workaround for PQresultErrorField not returning proper
result when an error is set and we are connecting via TCP/IP.
This allows correct $dbh->state() values. [GSM]
- Fix incorrect quoting preventing compiling. (CPAN bug #18640)
- Add support for quoting and binding of geometric types: POINT,
LINE, LSEG, BOX, PATH, POLYGON, and CIRCLE. Also added the
TID type. [GSM]
Changes from 1.41:
1.48 April 5, 2006
- Bump minimum DBI version to 1.45 (CPAN bug #18260) (plus problems
in versions 1.42 and 1.44 [GSM]
- Fix typo in Pg.pm code (CPAN bug #18537) [marc@sssonline.com]
- Ensure begin_work is properly set before err. (CPAN bug #18387) [GSM]
- Force PQexecParams to only run with DML. (CPAN bug #18258) [GSM]
- Fix bytea encoding problem (CPAN bug #18264) [GSM]
- Add documentation about connection service files (pg_service.conf).
[David Fetter]
1.47 March 20, 2006
- Fix problem with selecting arrays. (CPAN bugs #18128 and
#18177) [GSM]
- Fix problem with dollar-sign placeholders. [GSM]
1.46 March 16, 2006
- Fix problem with dollar-sign placeholders. (husseinp@gmail.com)
(CPAN bug #18209) [GSM]
1.45 February 27, 2006
- Fix bug preventing bytea values over 20 characters from showing.
Spotted by Igor Shevchenko. [GSM]
1.44 February 21, 2006
- Make sure pg_warn does not warn if the database attribute
PrintWarn is off. (Tyler MacDonald tyler@yi.org) [GSM]
- Add SIGNATURE file for Module::Signature verification. [GSM]
- Fix error in documentation for pg_errorlevel.
(CPAN bug #17434)
- Add experimental support for using DEFAULT values inside
of execute with $DBDPG_DEFAULT. [GSM]
- Return the proper SQLSTATE codes on connection failures.
(CPAN bug #17115) [GSM]
- Fix parser to handle leading parens. (CPAN bug #15481) [GSM]
- Make statement handles destruction abort early if
InactiveDestroy is set (CPAN bug #14978) [GSM]
- Make quote work properly for time/date types
(CPAN bug #15082) [GSM]
- Ensure all lo_ functions begin a transaction as needed
if they are the first action in a script
(CPAN bug # 13810) [GSM]
- Fix memory leak in dbdimp.c (k@sawada.cc) [Kenchi Sawada]
- Fix memory leak in dbdimp.c (dmitri@karasik.eu.org)
(CPAN bug #16054)
- Move package declaration lines to fix RPM parser problems
(CPAN bug #14509) [GSM]
- Add support for dollar quoting (CPAN bug #13608) [GSM]
- Added $dbh->{pg_default_port} method [GSM]
- Overhaul get_info data, add many more values [GSM]
- Overhaul type_info data (CPAN bug #13806) [GSM]
- Rewrite some of the quoting functions, reduce dependence
on libpq versions [GSM]
- Rewrite and optimize the do() method. Should be much faster
when called without placeholders. Thanks to Tom Lane
for suggesting this. [GSM]
- Double check PQserverVersion return and use alternate
method if it returns 0 (CPAN bug #14302)
- Add support for specifying type in $dbh->quote(),
such as $dbh->quote($var, {pg_type => DBD::Pg::PG_BYTEA})
Also support type => SQL_xx [GSM] (CPAN bug #13942)
- Fix pg_notifies() bug (CPAN bug #14232) [door@lcpi.ru]
- Add pg_ping() method [GSM]
- Make sure ping returns true, even if in failed transaction state
[thanks to Bill Moseley] [GSM]
- Fix COPY-related core dump [GSM]
- Fix strncpy bug in quote.c [Jun Kuriyama] (CPAN bug #14897)
- Fix error in is_high_bit_set() [Alexey Tourbin] (CPAN bug #13406)
1.43 June 23, 2005
- Added README.dev file. [GSM]
- Fix statement-name related core dump. [GSM]
- Ensure state() returns an empty string, not 00000 on success.
(CPAN bug #13237) [michael.bell@web.de of OpenCA] [GSM]
- Fix rare core dump when $sth still in scope after disconnect [GSM]
- Enhancements to README.win32 [fenlisesi@gmail.com]
- Fix incorrect sprintf calls (CPAN bug #12204)
[Jakub Jelinek]
- Fix get_info(18) ("ODBCVERSION") (CPAN bug #12968)
[thanks to szinger@lanl.gov] [GSM]
1.42 May 21, 2005
- Fix minor issues with copying and bytea quoting on older
servers. Fix some other memory leaks. [GSM]
- Fix backslash parsing in statements (CPAN bug #12870)
[felix.klee@inka.de] [GSM]
- Make rollback/commit reset copy state (CPAN bug #12866)
[imb@rentrak.com] [GSM]
- Make sure lo_creat issues a begin if necessary [GSM]
- Fix incorrect behavior when AutoCommit switched on. (CPAN bug #12748)
[thanks to Vivek Khera] [GSM]
- Have last_insert_id use set_err, not die. (CPAN bug #12503)
[thanks to Alexandra Walford] [GSM]
- Fixed tests to correctly handle older DBI versions reporting
failures on last_insert_id() (CPAN bug #12204)
[jpo@di.uminho.pt] [GSM]
- Re-enable REMARKS field on column_info (CPAN bug #12399)
[thanks to morni@cpan.org] [GSM]
- Many minor compiler optimizations and cleanups [GSM]
- Fix two separate memory leaks in dbdimp.c
[hertzog@debian.org and richardg@eSentire.com]
- Change VARCHAROID to UNKNOWNOID, suggested by users on mailing
list [GSM]
1.41
- ('Greg' is Greg Sabino Mullane, greg@turnstep.com)
- Make sure tests remove all temporary tables.
[Frank Bax]
- Preserve sqlstate if rolling back on deallocate, fix
potential segfault. [Stephen Clouse]
- Fix CPAN bug #12004: commit and rollback now return true
[Greg] (thanks to ivan-dbdpg@420.am)
- Overhaul and update COPY support; use new protocol.
New dbh methods: pg_putline, pg_getline, pg_endcopy.
[Greg]
- Rewrote version detection code. Compiled version and target
version are now available via $dbh->{pg_lib_version} and
$dbh->{pg_server_version} [Greg]
- Set our default type_id to 0, not 1043 (VARCHAR) when possible.
Suggested by Abhijit Menon-Sen via David Wheeler. [Greg]
- Add $dbh methods pg_savepoint(), pg_rollback_to(), and pg_release()
[Stephen Clouse] [Greg]
1.40 Tue Feb 22 06:06:45 UTC 2005
- Raise required DBI version to 1.38
- Execute returns 0 (0E0) not -1 for successful DDL commands.
[Robert Treat]
- Change all string lengths to use STRLEN
[rink@stack.nl]
- Added $dbh->pg_server_trace($fh) [Greg Sabino Mullane]
- Added $dbh->{pg_errorlevel}. [Greg Sabino Mullane]
- Fix utf8 quote() support [Dominic Mitchell <dom@semantico.com>]
- Added explicit support for types SQL_BOOLEAN, DATE, TIME,
TIMESTAMP, and TIMESTAMPTZ. Return correct values for
DATEOID and TIMEOID. [Greg Sabino Mullane]
- Added tablespace support for table_info and primary_key_info.
[Greg Sabino Mullane]
- Added new attributes to $dbh: pg_db, pg_user, pg_pass,
pg_host, pg_port, pg_options, pg_socket, pg_pid
[Greg Sabino Mullane]
- Minor fixes in quote.c, dbdimp.c, and types.h
[Christophe Martin: schplurtz at free.fr]
- Added support for SQLSTATE via $dbh->state and $sth->state
[Greg Sabino Mullane]
- Major overhaul of prepare/execute to handle new server-side
prepare system. See Pg.pm for details. [Greg Sabino Mullane]
- Make the tests honor the DBD_SCHEMA variable instead of
assuming that the "public" schema is available.
[Rainer Weikusat]
- dbdimp.c cleanups: better error messages, ensure commit
is only called once after a transaction fails.
[Alexey Slynko]
- primary_key() returns empty list not undef if no match.
[Julian Mehnle]
- Added the pg_protocol database handle attribute
[Greg Sabino Mullane]
- Changed "noprefix" to pg_noprefix
1.32 Wed Feb 25 18:24:18 UTC 2004
- Bugfix for memory allocation problems on win systems
[Rafael Kitover <caelum@debian.org>]
- Rewrote the foreign_key_info() method to handle
multi-column keys. [Greg Sabino Mullane]
- Rewrote the primary_key_info() and primary_key() methods to
cleanly handle multi-column primary keys. Also added a "pg_onerow"
attribute to allow primary_key_info() to return a single
row containing multiple-column information. [Greg Sabino Mullane]
- Switched commit behavior from commit->execute->begin
to begin->execute->commit
[xelah-junk@xelah.com]
- Made the _pg_use_catalog subroutine use {private_dbgpg}.
(CPAN bug #4841) [Greg Sabino Mullane]
- Changed strdup to safemalloc/strcpy in dbdimp.c
(CPAN bug #4578) [anonymous CPAN user]
- Made the data_sources method escape the database names as needed.
Added support for databases with spaces in their names.
[Greg Sabino Mullane]
- Added the "noprefix" attribute to prevent the tables() method
from prepending the schema name. [Greg Sabino Mullane]
- Rewrote the testing suite. Many more tests are performed.
Servers with a low client_min_messages are handled correctly.
[Greg Sabino Mullane]
- Fixed bug causing '$\d' to be picked up as a placeholder.
(CPAN bug #4799) [Greg Sabino Mullane]
- pg_notifies now catches and reports when PQconsumeInput fails.
(CPAN bug #4027) [nmueller@cs.wisc.edu]
- Enabled the "pg_bool_tf" database handle [Greg Sabino Mullane]
- Added required fields to the type_info() method:
SQL_DATA_TYPE, SQL_DATETIME_SUB, and INTERVAL PRECISION
[Greg Sabino Mullane]
- Fixed bug where the table_attributes() method was incorrectly
removing the NULLABLE column. [Greg Sabino Mullane]
- Fixed bug where case was not being preserved by the
foreign_key_info() method [Greg Sabino Mullane]
- a fetch on any column that had a type that did not have an entry
in the type_info array would segfault DBD::Pg.
(CPAN bugs #4818,4432) [Rudy Lippan]
- Duplicate rows bug with column_info() REMARKS has been fixed. However,
support for Postgres 7.1.x which worked briefly for 1.31 has now been
dropped for this feature. (Mark Stosberg)
- Bumped required Perl version to 5.6.1 in Makefile.PL. We were already
already requiring 5.6.1 for Pg.pm since 1.31.
- Removed extra "return" statement in quote.c to make Solaris happy
(CPAN bug #4419) [Rudy Lippan]
- Changed get_info(29) to return (") instead of (\")
(CPAN bug #4829) [Greg Sabino Mullane]
1.31 Mon Nov 17 21:21:21 UTC 2003
- $dbh->{TYPE} now returns SQL_TYPE_TIMESTAMP instead of 1114 for
timestamp columns. (In 1.31_x {x| x<8} $sth->{TYPE} returned 0
but reported by ["Hirche, Joachim" <Joachim.Hirche@cimconcepts.com>]).
- Raised required versions to Perl 5.6.1 and DBI 1.35
- Fix syntax error related to pg_server_version (CPAN bugs #2492,2755,3121)
- Cache multiple calls to pg_server_version.
- Notice messages generated by the database now use the perl
warning mechanism instead of going to stderr.
[Dominic Mitchell <dom@semantico.com>]
- $dbh->prepare() rewrites the SQL statement into an internal form,
striping out comments and whitespace, and if PostgreSQL > 7.3 takes the
stripped statement and passes that to Postgres' PREPARE statement,
then rewrites the statement as 'EXECUTE "DBD::PG::cached_query n"
($1, $2, ... $n, $n+1)' for DBD::Pg's execute.
-- Currently disabled until PREPARE works a little better
- Allows the use of :n and :foo bind params. So:
(SELECT * FROM foo WHERE 1 = :this and 2 = :that) will now work.
- Complains on execute when unbound bind params are submitted
(instead of defaulting to NULL)
- Switched over to use driver.xst.
- pg_error() removes \n's rather than truncating the message on the first \n.
- Fixed statement scan problem where the preparse of
"SELECT foo[3:33] from bar" was scanning :33 as a placeholder
- Moved the quoting of bind values out of execute() and into
bind -- as there is no need to requote the value every time execute
is called.
- :veryverylongplaceholdername == Long walk, short pier -- fixed.
- quote() is now in C and uses same code as bind_param.
- Quoting and dequoting now use libpq quoting functions where available
(I still need to take the libpq functions swiped out of quote.c and move
it into libpqswip.c with license info &c., and switch ifndefs to ifdefs)
- bind_param() will convert from 1,0 to TRUE/FALSE when pg_type
is PGBOOLOID.
- Fixed many heap buffer overruns.
- Added support for the get_info() method [Greg Sabino Mullane]
- Added tests for POD validation [Mark Stosberg]
- Several improvements to column_info, including:
- Fixed column_info so NULLABLE field shows correctly. [kevin@sysexperts.com]
- REMARKS field works now [Mark Stosberg]
- COLUMN_DEF fixed
- COLUMN_SIZE fixed
- pg_constraint column added to display column constraints
- additional documentation and tests added
- make test is now more intelligent and will bail out early if
db connection fails. [Greg Sabino Mullane]
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").
binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.
addresses PR pkg/28619 from H. Todd Fujinaka.
- Fix memory allocation problem in bytea escaping
- Add utf8 support
- Transform Perl arrays into PostgreSQL arrays
- Fix for foreign_key_info()
- Fix PG_TEXT parameter binding
- Doc cleanups
- Fix warning from func($table, 'table_attributes')
- Added suppport for schemas
- Fix binary to a bytea field conversion
- System tables no longer returned by tables().
- Fix table_attributes to handle removal of pg_relcheck in 7.3,
- Properly reset transaction status after failed transaction when
autocommit is off. Properly report transaction failure message.
- New pg_bool_tf database handle that when set to true booleans are
returned as 't'/'f' rather than 1/0.
- Maintenance transferred to GBorg.
- Added implementations of column_info() and table_info(), and
primary_key_info().
- The POD formatting was cleaned up.
- The preparser was updated to better handle escaped characters.
- Added eg/lotest.pl as a demonstration of using large objects in buffers
rather than files.
- Added LISTEN/NOTIFY functionality.
- Added constants for common PostgreSQL data types.
- Fixed compile-time warnings.