PageRenderTime 97ms CodeModel.GetById 15ms RepoModel.GetById 3ms app.codeStats 0ms

/linkedfs/usr/lib/perl5/vendor_perl/5.8.6/i386-linux/DBI/Changes.pm

https://bitbucket.org/harakiri/trk
Perl | 1559 lines | 1403 code | 156 blank | 0 comment | 103 complexity | 57260190dbef849d5fc578659390c5b2 MD5 | raw file
Possible License(s): GPL-2.0, MIT, LGPL-3.0
  1. =head1 NAME
  2. DBI::Changes - List of significant changes to the DBI
  3. =cut
  4. =head2 Changes in DBI 1.47 (svn rev 854), 2nd February 2005
  5. Fixed DBI::ProxyServer to not create pid files by default.
  6. References: Ubuntu Security Notice USN-70-1, CAN-2005-0077
  7. Thanks to Javier Fernández-Sanguino Peńa from the
  8. Debian Security Audit Project, and Jonathan Leffler.
  9. Fixed some tests to work with older Test::More versions.
  10. Fixed setting $DBI::err/errstr in DBI::PurePerl.
  11. Fixed potential undef warning from connect_cached().
  12. Fixed $DBI::lasth handling for DESTROY so lasth points to
  13. parent even if DESTROY called other methods.
  14. Fixed DBD::Proxy method calls to not alter $@.
  15. Fixed DBD::File problem with encoding pragma thanks to Erik Rijkers.
  16. Changed error handling so undef errstr doesn't cause warning.
  17. Changed DBI::DBD docs to use =head3/=head4 pod thanks to
  18. Jonathan Leffler. This may generate warnings for perl 5.6.
  19. Changed DBI::PurePerl to set autoflush on trace filehandle.
  20. Changed DBD::Proxy to treat Username as a local attribute
  21. so recent DBI version can be used with old DBI::ProxyServer.
  22. Changed driver handle caching in DBD::File.
  23. Added $GetInfoType{SQL_DATABASE_NAME} thanks to Steffen Goeldner.
  24. Updated docs to recommend some common DSN string attributes.
  25. Updated connect_cached() docs with issues and suggestions.
  26. Updated docs for NULL Value placeholders thanks to Brian Campbell.
  27. Updated docs for primary_key_info and primary_keys.
  28. Updated docs to clarify that the default fetchrow_hashref behaviour,
  29. of returning a ref to a new hash for each row, will not change.
  30. Updated err/errstr/state docs for DBD authors thanks to Steffen Goeldner.
  31. Updated handle/attribute docs for DBD authors thanks to Steffen Goeldner.
  32. Corrected and updated LongReadLen docs thanks to Bart Lateur.
  33. Added DBD::JDBC as a registered driver.
  34. =head2 Changes in DBI 1.46 (svn rev 584), 16th November 2004
  35. Fixed parsing bugs in DBI::SQL::Nano thanks to Jeff Zucker.
  36. Fixed a couple of bad links in docs thanks to Graham Barr.
  37. Fixed test.pl Win32 undef warning thanks to H.Merijn Brand & David Repko.
  38. Fixed minor issues in DBI::DBD::Metadata thanks to Steffen Goeldner.
  39. Fixed DBI::PurePerl neat() to use double quotes for utf8.
  40. Changed execute_array() definition, and default implementation,
  41. to not consider scalar values for execute tuple count. See docs.
  42. Changed DBD::File to enable ShowErrorStatement by default,
  43. which affects DBD::File subclasses such as DBD::CSV and DBD::DBM.
  44. Changed use DBI qw(:utils) tag to include $neat_maxlen.
  45. Updated Roadmap and ToDo.
  46. Added data_string_diff() data_string_desc() and data_diff()
  47. utility functions to help diagnose Unicode issues.
  48. All can be imported via the use DBI qw(:utils) tag.
  49. =head2 Changes in DBI 1.45 (svn rev 480), 6th October 2004
  50. Fixed DBI::DBD code for drivers broken in 1.44.
  51. Fixed "Free to wrong pool"/"Attempt to free unreferenced scalar" in FETCH.
  52. =head2 Changes in DBI 1.44 (svn rev 478), 5th October 2004
  53. Fixed build issues on VMS thanks to Jakob Snoer.
  54. Fixed DBD::File finish() method to return 1 thanks to Jan Dubois.
  55. Fixed rare core dump during global destruction thanks to Mark Jason Dominus.
  56. Fixed risk of utf8 flag persisting from one row to the next.
  57. Changed bind_param_array() so it doesn't require all bind arrays
  58. to have the same number of elements.
  59. Changed bind_param_array() to error if placeholder number <= 0.
  60. Changed execute_array() definition, and default implementation,
  61. to effectively NULL-pad shorter bind arrays.
  62. Changed execute_array() to return "0E0" for 0 as per the docs.
  63. Changed execute_for_fetch() definition, and default implementation,
  64. to return "0E0" for 0 like execute() and execute_array().
  65. Changed Test::More prerequisite to Test::Simple (which is also the name
  66. of the distribution both are packaged in) to work around ppm behaviour.
  67. Corrected docs to say that get/set of unknown attribute generates
  68. a warning and is no longer fatal. Thanks to Vadim.
  69. Corrected fetchall_arrayref() docs example thanks to Drew Broadley.
  70. Added $h1->swap_inner_handle($h2) sponsored by BizRate.com
  71. =head2 Changes in DBI 1.43 (svn rev 377), 2nd July 2004
  72. Fixed connect() and connect_cached() RaiseError/PrintError
  73. which would sometimes show "(no error string)" as the error.
  74. Fixed compiler warning thanks to Paul Marquess.
  75. Fixed "trace level set to" trace message thanks to H.Merijn Brand.
  76. Fixed DBD::DBM $dbh->{dbm_tables}->{...} to be keyed by the
  77. table name not the file name thanks to Jeff Zucker.
  78. Fixed last_insert_id(...) thanks to Rudy Lippan.
  79. Fixed propagation of scalar/list context into proxied methods.
  80. Fixed DBI::Profile::DESTROY to not alter $@.
  81. Fixed DBI::ProfileDumper new() docs thanks to Michael Schwern.
  82. Fixed _load_class to propagate $@ thanks to Drew Taylor.
  83. Fixed compile warnings on Win32 thanks to Robert Baron.
  84. Fixed problem building with recent versions of MakeMaker.
  85. Fixed DBD::Sponge not to generate warning with threads.
  86. Fixed DBI_AUTOPROXY to work more than once thanks to Steven Hirsch.
  87. Changed TraceLevel 1 to not show recursive/nested calls.
  88. Changed getting or setting an invalid attribute to no longer be
  89. a fatal error but generate a warning instead.
  90. Changed selectall_arrayref() to call finish() if
  91. $attr->{MaxRows} is defined.
  92. Changed all tests to use Test::More and enhanced the tests thanks
  93. to Stevan Little and Andy Lester. See http://qa.perl.org/phalanx/
  94. Changed Test::More minimum prerequisite version to 0.40 (2001).
  95. Changed DBI::Profile header to include the date and time.
  96. Added DBI->parse_dsn($dsn) method.
  97. Added warning if build directory path contains whitespace.
  98. Added docs for parse_trace_flags() and parse_trace_flag().
  99. Removed "may change" warnings from the docs for table_info(),
  100. primary_key_info(), and foreign_key_info() methods.
  101. =head2 Changes in DBI 1.42 (svn rev 222), 12th March 2004
  102. Fixed $sth->{NUM_OF_FIELDS} of non-executed statement handle
  103. to be undef as per the docs (it was 0).
  104. Fixed t/41prof_dump.t to work with perl5.9.1.
  105. Fixed DBD_ATTRIB_DELETE macro thanks to Marco Paskamp.
  106. Fixed DBI::PurePerl looks_like_number() and $DBI::rows.
  107. Fixed ref($h)->can("foo") to not croak.
  108. Changed attributes (NAME, TYPE etc) of non-executed statement
  109. handle to be undef instead of triggering an error.
  110. Changed ShowErrorStatement to apply to more $dbh methods.
  111. Changed DBI_TRACE env var so just does this at load time:
  112. DBI->trace(split '=', $ENV{DBI_TRACE}, 2);
  113. Improved "invalid number of parameters" error message.
  114. Added DBI::common as base class for DBI::db, DBD::st etc.
  115. Moved methods common to all handles into DBI::common.
  116. Major tracing enhancement:
  117. Added $h->parse_trace_flags("foo|SQL|7") to map a group of
  118. trace flags into the corresponding trace flag bits.
  119. Added automatic calling of parse_trace_flags() if
  120. setting the trace level to a non-numeric value:
  121. $h->{TraceLevel}="foo|SQL|7"; $h->trace("foo|SQL|7");
  122. DBI->connect("dbi:Driver(TraceLevel=SQL|foo):...", ...);
  123. Currently no trace flags have been defined.
  124. Added to, and reworked, the trace documentation.
  125. Added dbivport.h for driver authors to use.
  126. Major driver additions that Jeff Zucker and I have been working on:
  127. Added DBI::SQL::Nano a 'smaller than micro' SQL parser
  128. with an SQL::Statement compatible API. If SQL::Statement
  129. is installed then DBI::SQL::Nano becomes an empty subclass
  130. of SQL::Statement, unless the DBI_SQL_NANO env var is true.
  131. Added DBD::File, modified to use DBI::SQL::Nano.
  132. Added DBD::DBM, an SQL interface to DBM files using DBD::File.
  133. Documentation changes:
  134. Corrected typos in docs thanks to Steffen Goeldner.
  135. Corrected execute_for_fetch example thanks to Dean Arnold.
  136. =head2 Changes in DBI 1.41 (svn rev 130), 22nd February 2004
  137. Fixed execute_for_array() so tuple_status parameter is optional
  138. as per docs, thanks to Ed Avis.
  139. Fixed execute_for_array() docs to say that it returns undef if
  140. any of the execute() calls fail.
  141. Fixed take_imp_data() test on m68k reported by Christian Hammers.
  142. Fixed write_typeinfo_pm inconsistencies in DBI::DBD::Metadata
  143. thanks to Andy Hassall.
  144. Fixed $h->{TraceLevel} to not return DBI->trace trace level
  145. which it used to if DBI->trace trace level was higher.
  146. Changed set_err() to append to errstr, with a leading "\n" if it's
  147. not empty, so that multiple error/warning messages are recorded.
  148. Changed trace to limit elements dumped when an array reference is
  149. returned from a method to the max(40, $DBI::neat_maxlen/10)
  150. so that fetchall_arrayref(), for example, doesn't flood the trace.
  151. Changed trace level to be a four bit integer (levels 0 thru 15)
  152. and a set of topic flags (no topics have been assigned yet).
  153. Changed column_info() to check argument count.
  154. Extended bind_param() TYPE attribute specification to imply
  155. standard formating of value, eg SQL_DATE implies 'YYYY-MM-DD'.
  156. Added way for drivers to indicate 'success with info' or 'warning'
  157. by setting err to "0" for warning and "" for information.
  158. Both values are false and so don't trigger RaiseError etc.
  159. Thanks to Steffen Goeldner for the original idea.
  160. Added $h->{HandleSetErr} = sub { ... } to be called at the
  161. point that an error, warn, or info state is recorded.
  162. The code can alter the err, errstr, and state values
  163. (e.g., to promote an error to a warning, or the reverse).
  164. Added $h->{PrintWarn} attribute to enable printing of warnings
  165. recorded by the driver. Defaults to same value as $^W (perl -w).
  166. Added $h->{ErrCount} attribute, incremented whenever an error is
  167. recorded by the driver via set_err().
  168. Added $h->{Executed} attribute, set if do()/execute() called.
  169. Added \%attr parameter to foreign_key_info() method.
  170. Added ref count of inner handle to "DESTROY ignored for outer" msg.
  171. Added Win32 build config checks to DBI::DBD thanks to Andy Hassall.
  172. Added bind_col to Driver.xst so drivers can define their own.
  173. Added TYPE attribute to bind_col and specified the expected
  174. driver behaviour.
  175. Major update to signal handling docs thanks to Lincoln Baxter.
  176. Corrected dbiproxy usage doc thanks to Christian Hammers.
  177. Corrected type_info_all index hash docs thanks to Steffen Goeldner.
  178. Corrected type_info COLUMN_SIZE to chars not bytes thanks to Dean Arnold.
  179. Corrected get_info() docs to include details of DBI::Const::GetInfoType.
  180. Clarified that $sth->{PRECISION} is OCTET_LENGTH for char types.
  181. =head2 Changes in DBI 1.40, 7th January 2004
  182. Fixed handling of CachedKids when DESTROYing threaded handles.
  183. Fixed sql_user_name() in DBI::DBD::Metadata (used by write_getinfo_pm)
  184. to use $dbh->{Username}. Driver authors please update your code.
  185. Changed connect_cached() when running under Apache::DBI
  186. to route calls to Apache::DBI::connect().
  187. Added CLONE() to DBD::Sponge and DBD::ExampleP.
  188. Added warning when starting a new thread about any loaded driver
  189. which does not have a CLONE() function.
  190. Added new prepare_cache($sql, \%attr, 3) option to manage Active handles.
  191. Added SCALE and NULLABLE support to DBD::Sponge.
  192. Added missing execute() in fetchall_hashref docs thanks to Iain Truskett.
  193. Added a CONTRIBUTING section to the docs with notes on creating patches.
  194. =head2 Changes in DBI 1.39, 27th November 2003
  195. Fixed STORE to not clear error during nested DBI call, again/better,
  196. thanks to Tony Bowden for the report and helpful test case.
  197. Fixed DBI dispatch to not try to use AUTOLOAD for driver methods unless
  198. the method has been declared (as methods should be when using AUTOLOAD).
  199. This fixes a problem when the Attribute::Handlers module is loaded.
  200. Fixed cwd check code to use $Config{path_sep} thanks to Steve Hay.
  201. Fixed unqualified croak() calls thanks to Steffen Goeldner.
  202. Fixed DBD::ExampleP TYPE and PRECISION attributes thanks to Tom Lowery.
  203. Fixed tracing of methods that only get traced at high trace levels.
  204. The level 1 trace no longer includes nested method calls so it generally
  205. just shows the methods the application explicitly calls.
  206. Added line to trace log (level>=4) when err/errstr is cleared.
  207. Updated docs for InactiveDestroy and point out where and when the
  208. trace includes the process id.
  209. Update DBI::DBD docs thanks to Steffen Goeldner.
  210. Removed docs saying that the DBI->data_sources method could be
  211. passed a $dbh. The $dbh->data_sources method should be used instead.
  212. Added link to 'DBI recipes' thanks to Giuseppe Maxia:
  213. http://gmax.oltrelinux.com/dbirecipes.html (note that this
  214. is not an endorsement that the recipies are 'optimal')
  215. Note: There is a bug in perl 5.8.2 when configured with threads
  216. and debugging enabled (bug #24463) which causes a DBI test to fail.
  217. =head2 Changes in DBI 1.38, 21th August 2003
  218. NOTE: The DBI now requires perl version 5.6.0 or later.
  219. (As per notice in DBI 1.33 released 27th February 2003)
  220. Fixed spurious t/03handles failure on 64bit perls reported by H.Merijn Brand.
  221. Fixed spurious t/15array failure on some perl versions thanks to Ed Avis.
  222. Fixed build using dmake on windows thanks to Steffen Goeldner.
  223. Fixed build on using some shells thanks to Gurusamy Sarathy.
  224. Fixed ParamValues to only be appended to ShowErrorStatement if not empty.
  225. Fixed $dbh->{Statement} not being writable by drivers in some cases.
  226. Fixed occasional undef warnings on connect failures thanks to Ed Avis.
  227. Fixed small memory leak when using $sth->{NAME..._hash}.
  228. Fixed 64bit warnings thanks to Marian Jancar.
  229. Fixed DBD::Proxy::db::DESTROY to not alter $@ thanks to Keith Chapman.
  230. Fixed Makefile.PL status from WriteMakefile() thanks to Leon Brocard.
  231. Changed "Can't set ...->{Foo}: unrecognised attribute" from an error to a
  232. warning when running with DBI::ProxyServer to simplify upgrades.
  233. Changed execute_array() to no longer require ArrayTupleStatus attribute.
  234. Changed DBI->available_drivers to not hide DBD::Sponge.
  235. Updated/moved placeholder docs to a better place thanks to Johan Vromans.
  236. Changed dbd_db_do4 api in Driver.xst to match dbd_st_execute (return int,
  237. not bool), relevant only to driver authors.
  238. Changed neat(), and thus trace(), so strings marked as utf8 are presented
  239. in double quotes instead of single quotes and are not sanitized.
  240. Added $dbh->data_sources method.
  241. Added $dbh->last_insert_id method.
  242. Added $sth->execute_for_fetch($fetch_tuple_sub, \@tuple_status) method.
  243. Added DBI->installed_versions thanks to Jeff Zucker.
  244. Added $DBI::Profile::ON_DESTROY_DUMP variable.
  245. Added docs for DBD::Sponge thanks to Mark Stosberg.
  246. =head2 Changes in DBI 1.37, 15th May 2003
  247. Fixed "Can't get dbh->{Statement}: unrecognised attribute" error in test
  248. caused by change to perl internals in 5.8.0
  249. Fixed to build with latest development perl (5.8.1@19525).
  250. Fixed C code to use all ANSI declarations thanks to Steven Lembark.
  251. =head2 Changes in DBI 1.36, 11th May 2003
  252. Fixed DBI->connect to carp instead of croak on 'old-style' usage.
  253. Fixed connect(,,, { RootClass => $foo }) to not croak if module not found.
  254. Fixed code generated by DBI::DBD::Metadata thanks to DARREN@cpan.org (#2270)
  255. Fixed DBI::PurePerl to not reset $@ during method dispatch.
  256. Fixed VMS build thanks to Michael Schwern.
  257. Fixed Proxy disconnect thanks to Steven Hirsch.
  258. Fixed error in DBI::DBD docs thanks to Andy Hassall.
  259. Changed t/40profile.t to not require Time::HiRes.
  260. Changed DBI::ProxyServer to load DBI only on first request, which
  261. helps threaded server mode, thanks to Bob Showalter.
  262. Changed execute_array() return value from row count to executed
  263. tuple count, and now the ArrayTupleStatus attribute is mandatory.
  264. NOTE: That is an API definition change that may affect your code.
  265. Changed CompatMode attribute to also disable attribute 'quick FETCH'.
  266. Changed attribute FETCH to be slightly faster thanks to Stas Bekman.
  267. Added workaround for perl bug #17575 tied hash nested FETCH
  268. thanks to Silvio Wanka.
  269. Added Username and Password attributes to connect(..., \%attr) and so
  270. also embedded in DSN like "dbi:Driver(Username=user,Password=pass):..."
  271. Username and Password can't contain ")", ",", or "=" characters.
  272. The predence is DSN first, then \%attr, then $user & $pass parameters,
  273. and finally the DBI_USER & DBI_PASS environment variables.
  274. The Username attribute is stored in the $dbh but the Password is not.
  275. Added ProxyServer HOWTO configure restrictions docs thanks to Jochen Wiedmann.
  276. Added MaxRows attribute to selectcol_arrayref prompted by Wojciech Pietron.
  277. Added dump_handle as a method not just a DBI:: utility function.
  278. Added on-demand by-row data feed into execute_array() using code ref,
  279. or statement handle. For example, to insert from a select:
  280. $insert_sth->execute_array( { ArrayTupleFetch => $select_sth, ... } )
  281. Added warning to trace log when $h->{foo}=... is ignored due to
  282. invalid prefix (e.g., not 'private_').
  283. =head2 Changes in DBI 1.35, 7th March 2003
  284. Fixed memory leak in fetchrow_hashref introduced in DBI 1.33.
  285. Fixed various DBD::Proxy errors introduced in DBI 1.33.
  286. Fixed to ANSI C in dbd_dr_data_sources thanks to Jonathan Leffler.
  287. Fixed $h->can($method_name) to return correct code ref.
  288. Removed DBI::Format from distribution as it's now part of the
  289. separate DBI::Shell distribution by Tom Lowery.
  290. Updated DBI::DBD docs with a note about the CLONE method.
  291. Updated DBI::DBD docs thanks to Jonathan Leffler.
  292. Updated DBI::DBD::Metadata for perl 5.5.3 thanks to Jonathan Leffler.
  293. Added note to install_method docs about setup_driver() method.
  294. =head2 Changes in DBI 1.34, 28th February 2003
  295. Fixed DBI::DBD docs to refer to DBI::DBD::Metadata thanks to Jonathan Leffler.
  296. Fixed dbi_time() compile using BorlandC on Windows thanks to Steffen Goeldner.
  297. Fixed profile tests to do enough work to measure on Windows.
  298. Fixed disconnect_all() to not be required by drivers.
  299. Added $okay = $h->can($method_name) to check if a method exists.
  300. Added DBD::*::*->install_method($method_name, \%attr) so driver private
  301. methods can be 'installed' into the DBI dispatcher and no longer
  302. need to be called using $h->func(..., $method_name).
  303. Enhanced $dbh->clone() and documentation.
  304. Enhanced docs to note that dbi_time(), and thus profiling, is limited
  305. to only millisecond (seconds/1000) resolution on Windows.
  306. Removed old DBI::Shell from distribution and added Tom Lowery's improved
  307. version to the Bundle::DBI file.
  308. Updated minimum version numbers for modules in Bundle::DBI.
  309. =head2 Changes in DBI 1.33, 27th February 2003
  310. NOTE: Future versions of the DBI *will not* support perl 5.6.0 or earlier.
  311. : Perl 5.6.1 will be the minimum supported version.
  312. NOTE: The "old-style" connect: DBI->connect($database, $user, $pass, $driver);
  313. : has been deprecated for several years and will now generate a warning.
  314. : It will be removed in a later release. Please change any old connect() calls.
  315. Added $dbh2 = $dbh1->clone to make a new connection to the database
  316. that is identical to the original one. clone() can be called even after
  317. the original handle has been disconnected. See the docs for more details.
  318. Fixed merging of profile data to not sum DBIprof_FIRST_TIME values.
  319. Fixed unescaping of newlines in DBI::ProfileData thanks to Sam Tregar.
  320. Fixed Taint bug with fetchrow_hashref with help from Bradley Baetz.
  321. Fixed $dbh->{Active} for DBD::Proxy, reported by Bob Showalter.
  322. Fixed STORE to not clear error during nested DBI call,
  323. thanks to Tony Bowden for the report and helpful test case.
  324. Fixed DBI::PurePerl error clearing behaviour.
  325. Fixed dbi_time() and thus DBI::Profile on Windows thanks to Smejkal Petr.
  326. Fixed problem that meant ShowErrorStatement could show wrong statement,
  327. thanks to Ron Savage for the report and test case.
  328. Changed Apache::DBI hook to check for $ENV{MOD_PERL} instead of
  329. $ENV{GATEWAY_INTERFACE} thanks to Ask Bjoern Hansen.
  330. No longer tries to dup trace logfp when an interpreter is being cloned.
  331. Database handles no longer inherit shared $h->err/errstr/state storage
  332. from their drivers, so each $dbh has it's own $h->err etc. values
  333. and is no longer affected by calls made on other dbh's.
  334. Now when a dbh is destroyed it's err/errstr/state values are copied
  335. up to the driver so checking $DBI::errstr still works as expected.
  336. Build / portability fixes:
  337. Fixed t/40profile.t to not use Time::HiRes.
  338. Fixed t/06attrs.t to not be locale sensitive, reported by Christian Hammers.
  339. Fixed sgi compiler warnings, reported by Paul Blake.
  340. Fixed build using make -j4, reported by Jonathan Leffler.
  341. Fixed build and tests under VMS thanks to Craig A. Berry.
  342. Documentation changes:
  343. Documented $high_resolution_time = dbi_time() function.
  344. Documented that bind_col() can take an atribute hash.
  345. Clarified documentation for ParamValues attribute hash keys.
  346. Many good DBI documentation tweaks from Jonathan Leffler,
  347. including a major update to the DBI::DBD driver author guide.
  348. Clarified that execute() should itself call finish() if it's
  349. called on a statement handle that's still active.
  350. Clarified $sth->{ParamValues}. Driver authors please note.
  351. Removed "NEW" markers on some methods and attributes and
  352. added text to each giving the DBI version it was added in,
  353. if it was added after DBI 1.21 (Feb 2002).
  354. Changes of note for authors of all drivers:
  355. Added SQL_DATA_TYPE, SQL_DATETIME_SUB, NUM_PREC_RADIX, and
  356. INTERVAL_PRECISION fields to docs for type_info_all. There were
  357. already in type_info(), but type_info_all() didn't specify the
  358. index values. Please check and update your type_info_all() code.
  359. Added DBI::DBD::Metadata module that auto-generates your drivers
  360. get_info and type_info_all data and code, thanks mainly to
  361. Jonathan Leffler and Steffen Goeldner. If you've not implemented
  362. get_info and type_info_all methods and your database has an ODBC
  363. driver available then this will do all the hard work for you!
  364. Drivers should no longer pass Err, Errstr, or State to _new_drh
  365. or _new_dbh functions.
  366. Please check that you support the slightly modified behaviour of
  367. $sth->{ParamValues}, e.g., always return hash with keys if possible.
  368. Changes of note for authors of compiled drivers:
  369. Added dbd_db_login6 & dbd_st_finish3 prototypes thanks to Jonathan Leffler.
  370. All dbd_*_*() functions implemented by drivers must have a
  371. corresponding #define dbd_*_* <driver_prefix>_*_* otherwise
  372. the driver may not work with a future release of the DBI.
  373. Changes of note for authors of drivers which use Driver.xst:
  374. Some new method hooks have been added are are enabled by
  375. defining corresponding macros:
  376. $drh->data_sources() - dbd_dr_data_sources
  377. $dbh->do() - dbd_db_do4
  378. The following methods won't be compiled into the driver unless
  379. the corresponding macro has been #defined:
  380. $drh->disconnect_all() - dbd_discon_all
  381. =head2 Changes in DBI 1.32, 1st December 2002
  382. Fixed to work with 5.005_03 thanks to Tatsuhiko Miyagawa (I've not tested it).
  383. Reenabled taint tests (accidentally left disabled) spotted by Bradley Baetz.
  384. Improved docs for FetchHashKeyName attribute thanks to Ian Barwick.
  385. Fixed core dump if fetchrow_hashref given bad argument (name of attribute
  386. with a value that wasn't an array reference), spotted by Ian Barwick.
  387. Fixed some compiler warnings thanks to David Wheeler.
  388. Updated Steven Hirsch's enhanced proxy work (seems I left out a bit).
  389. Made t/40profile.t tests more reliable, reported by Randy, who is part of
  390. the excellent CPAN testers team: http://testers.cpan.org/
  391. (Please visit, see the valuable work they do and, ideally, join in!)
  392. =head2 Changes in DBI 1.31, 29th November 2002
  393. The fetchall_arrayref method, when called with a $maxrows parameter,
  394. no longer gives an error if called again after all rows have been
  395. fetched. This simplifies application logic when fetching in batches.
  396. Also added batch-fetch while() loop example to the docs.
  397. The proxy now supports non-lazy (synchronous) prepare, positioned
  398. updates (for selects containing 'for update'), PlRPC config set
  399. via attributes, and accurate propagation of errors, all thanks
  400. to Steven Hirsch (plus a minor fix from Sean McMurray and doc
  401. tweaks from Michael A Chase).
  402. The DBI_AUTOPROXY env var can now hold the full dsn of the proxy driver
  403. plus attributes, like "dbi:Proxy(proxy_foo=>1):host=...".
  404. Added TaintIn & TaintOut attributes to give finer control over
  405. tainting thanks to Bradley Baetz.
  406. The RootClass attribute no longer ignores failure to load a module,
  407. but also doesn't try to load a module if the class already exists,
  408. with thanks to James FitzGibbon.
  409. HandleError attribute works for connect failures thanks to David Wheeler.
  410. The connect() RaiseError/PrintError message now includes the username.
  411. Changed "last handle unknown or destroyed" warning to be a trace message.
  412. Removed undocumented $h->event() method.
  413. Further enhancements to DBD::PurePerl accuracy.
  414. The CursorName attribute now defaults to undef and not an error.
  415. DBI::Profile changes:
  416. New DBI::ProfileDumper, DBI::ProfileDumper::Apache, and
  417. DBI::ProfileData modules (to manage the storage and processing
  418. of profile data), plus dbiprof program for analyzing profile
  419. data - with many thanks to Sam Tregar.
  420. Added $DBI::err (etc) tied variable lookup time to profile.
  421. Added time for DESTROY method into parent handles profile (used to be ignored).
  422. Documentation changes:
  423. Documented $dbh = $sth->{Database} attribute.
  424. Documented $dbh->connected(...) post-connection call when subclassing.
  425. Updated some minor doc issues thanks to H.Merijn Brand.
  426. Updated Makefile.PL example in DBI::DBD thanks to KAWAI,Takanori.
  427. Fixed execute_array() example thanks to Peter van Hardenberg.
  428. Changes for driver authors, not required but strongly recommended:
  429. Change DBIS to DBIc_DBISTATE(imp_xxh) [or imp_dbh, imp_sth etc]
  430. Change DBILOGFP to DBIc_LOGPIO(imp_xxh) [or imp_dbh, imp_sth etc]
  431. Any function from which all instances of DBIS and DBILOGFP are
  432. removed can also have dPERLINTERP removed (a good thing).
  433. All use of the DBIh_EVENT* macros should be removed.
  434. Major update to DBI::DBD docs thanks largely to Jonathan Leffler.
  435. Add these key values: 'Err' => \my $err, 'Errstr' => \my $errstr,
  436. to the hash passed to DBI::_new_dbh() in your driver source code.
  437. That will make each $dbh have it's own $h->err and $h->errstr
  438. values separate from other $dbh belonging to the same driver.
  439. If you have a ::db or ::st DESTROY methods that do nothing
  440. you can now remove them - which speeds up handle destruction.
  441. =head2 Changes in DBI 1.30, 18th July 2002
  442. Fixed problems with selectrow_array, selectrow_arrayref, and
  443. selectall_arrayref introduced in DBI 1.29.
  444. Fixed FETCHing a handle attribute to not clear $DBI::err etc (broken in 1.29).
  445. Fixed core dump at trace level 9 or above.
  446. Fixed compilation with perl 5.6.1 + ithreads (i.e. Windows).
  447. Changed definition of behaviour of selectrow_array when called in a scalar
  448. context to match fetchrow_array.
  449. Corrected selectrow_arrayref docs which showed selectrow_array thanks to Paul DuBois.
  450. =head2 Changes in DBI 1.29, 15th July 2002
  451. NOTE: This release changes the specified behaviour for the
  452. : fetchrow_array method when called in a scalar context:
  453. : The DBI spec used to say that it would return the FIRST field.
  454. : Which field it returns (i.e., the first or the last) is now undefined.
  455. : This does not affect statements that only select one column, which is
  456. : usually the case when fetchrow_array is called in a scalar context.
  457. : FYI, this change was triggered by discovering that the fetchrow_array
  458. : implementation in Driver.xst (used by most compiled drivers)
  459. : didn't match the DBI specification. Rather than change the code
  460. : to match, and risk breaking existing applications, I've changed the
  461. : specification (that part was always of dubious value anyway).
  462. NOTE: Future versions of the DBI may not support for perl 5.5 much longer.
  463. : If you are still using perl 5.005_03 you should be making plans to
  464. : upgrade to at least perl 5.6.1, or 5.8.0. Perl 5.8.0 is due to be
  465. : released in the next week or so. (Although it's a "point 0" release,
  466. : it is the most throughly tested release ever.)
  467. Added XS/C implementations of selectrow_array, selectrow_arrayref, and
  468. selectall_arrayref to Driver.xst. See DBI 1.26 Changes for more info.
  469. Removed support for the old (fatally flawed) "5005" threading model.
  470. Added support for new perl 5.8 iThreads thanks to Gerald Richter.
  471. (Threading support and safety should still be regarded as beta
  472. quality until further notice. But it's much better than it was.)
  473. Updated the "Threads and Thread Safety" section of the docs.
  474. The trace output can be sent to STDOUT instead of STDERR by using
  475. "STDOUT" as the name of the file, i.e., $h->trace(..., "STDOUT")
  476. Added pointer to perlreftut, perldsc, perllol, and perlboot manuals
  477. into the intro section of the docs, suggested by Brian McCain.
  478. Fixed DBI::Const::GetInfo::* pod docs thanks to Zack Weinberg.
  479. Some changes to how $dbh method calls are treated by DBI::Profile:
  480. Meta-data methods now clear $dbh->{Statement} on entry.
  481. Some $dbh methods are now profiled as if $dbh->{Statement} was empty
  482. (because thet're unlikely to actually relate to its contents).
  483. Updated dbiport.h to ppport.h from perl 5.8.0.
  484. Tested with perl 5.5.3 (vanilla, Solaris), 5.6.1 (vanilla, Solaris), and
  485. perl 5.8.0 (RC3@17527 with iThreads & Multiplicity on Solaris and FreeBSD).
  486. =head2 Changes in DBI 1.28, 14th June 2002
  487. Added $sth->{ParamValues} to return a hash of the most recent
  488. values bound to placeholders via bind_param() or execute().
  489. Individual drivers need to be updated to support it.
  490. Enhanced ShowErrorStatement to include ParamValues if available:
  491. "DBD::foo::st execute failed: errstr [for statement ``...'' with params: 1='foo']"
  492. Further enhancements to DBD::PurePerl accuracy.
  493. =head2 Changes in DBI 1.27, 13th June 2002
  494. Fixed missing column in C implementation of fetchall_arrayref()
  495. thanks to Philip Molter for the prompt reporting of the problem.
  496. =head2 Changes in DBI 1.26, 13th June 2002
  497. Fixed t/40profile.t to work on Windows thanks to Smejkal Petr.
  498. Fixed $h->{Profile} to return undef, not error, if not set.
  499. Fixed DBI->available_drivers in scalar context thanks to Michael Schwern.
  500. Added C implementations of selectrow_arrayref() and fetchall_arrayref()
  501. in Driver.xst. All compiled drivers using Driver.xst will now be
  502. faster making those calls. Most noticable with fetchall_arrayref for
  503. many rows or selectrow_arrayref with a fast query. For example, using
  504. DBD::mysql a selectrow_arrayref for a single row using a primary key
  505. is ~20% faster, and fetchall_arrayref for 20000 rows is twice as fast!
  506. Drivers just need to be recompiled and reinstalled to enable it.
  507. The fetchall_arrayref speed up only applies if $slice parameter is not used.
  508. Added $max_rows parameter to fetchall_arrayref() to optionally limit
  509. the number of rows returned. Can now fetch batches of rows.
  510. Added MaxRows attribute to selectall_arrayref()
  511. which then passes it to fetchall_arrayref().
  512. Changed selectrow_array to make use of selectrow_arrayref.
  513. Trace level 1 now shows first two parameters of all methods
  514. (used to only for that for some, like prepare,execute,do etc)
  515. Trace indicator for recursive calls (first char on trace lines)
  516. now starts at 1 not 2.
  517. Documented that $h->func() does not trigger RaiseError etc
  518. so applications must explicitly check for errors.
  519. DBI::Profile with DBI_PROFILE now shows percentage time inside DBI.
  520. HandleError docs updated to show that handler can edit error message.
  521. HandleError subroutine interface is now regarded as stable.
  522. =head2 Changes in DBI 1.25, 5th June 2002
  523. Fixed build problem on Windows and some compiler warnings.
  524. Fixed $dbh->{Driver} and $sth->{Statement} for driver internals
  525. These are 'inner' handles as per behaviour prior to DBI 1.16.
  526. Further minor improvements to DBI::PurePerl accuracy.
  527. =head2 Changes in DBI 1.24, 4th June 2002
  528. Fixed reference loop causing a handle/memory leak
  529. that was introduced in DBI 1.16.
  530. Fixed DBI::Format to work with 'filehandles' from IO::Scalar
  531. and similar modules thanks to report by Jeff Boes.
  532. Fixed $h->func for DBI::PurePerl thanks to Jeff Zucker.
  533. Fixed $dbh->{Name} for DBI::PurePerl thanks to Dean Arnold.
  534. Added DBI method call profiling and benchmarking.
  535. This is a major new addition to the DBI.
  536. See $h->{Profile} attribute and DBI::Profile module.
  537. For a quick trial, set the DBI_PROFILE environment variable and
  538. run your favourite DBI script. Try it with DBI_PROFILE set to 1,
  539. then try 2, 4, 8, 10, and -10. Have fun!
  540. Added execute_array() and bind_param_array() documentation
  541. with thanks to Dean Arnold.
  542. Added notes about the DBI having not yet been tested with iThreads
  543. (testing and patches for SvLOCK etc welcome).
  544. Removed undocumented Handlers attribute (replaced by HandleError).
  545. Tested with 5.5.3 and 5.8.0 RC1.
  546. =head2 Changes in DBI 1.23, 25th May 2002
  547. Greatly improved DBI::PurePerl in performance and accuracy.
  548. Added more detail to DBI::PurePerl docs about what's not supported.
  549. Fixed undef warnings from t/15array.t and DBD::Sponge.
  550. =head2 Changes in DBI 1.22, 22nd May 2002
  551. Added execute_array() and bind_param_array() with special thanks
  552. to Dean Arnold. Not yet documented. See t/15array.t for examples.
  553. All drivers now automatically support these methods.
  554. Added DBI::PurePerl, a transparent DBI emulation for pure-perl drivers
  555. with special thanks to Jeff Zucker. Perldoc DBI::PurePerl for details.
  556. Added DBI::Const::GetInfo* modules thanks to Steffen Goeldner.
  557. Added write_getinfo_pm utility to DBI::DBD thanks to Steffen Goeldner.
  558. Added $allow_active==2 mode for prepare_cached() thanks to Stephen Clouse.
  559. Updated DBI::Format to Revision 11.4 thanks to Tom Lowery.
  560. Use File::Spec in Makefile.PL (helps VMS etc) thanks to Craig Berry.
  561. Extend $h->{Warn} to commit/rollback ineffective warning thanks to Jeff Baker.
  562. Extended t/preparse.t and removed "use Devel::Peek" thanks to Scott Hildreth.
  563. Only copy Changes to blib/lib/Changes.pm once thanks to Jonathan Leffler.
  564. Updated internals for modern perls thanks to Jonathan Leffler and Jeff Urlwin.
  565. Tested with perl 5.7.3 (just using default perl config).
  566. Documentation changes:
  567. Added 'Catalog Methods' section to docs thanks to Steffen Goeldner.
  568. Updated README thanks to Michael Schwern.
  569. Clarified that driver may choose not to start new transaction until
  570. next use of $dbh after commit/rollback.
  571. Clarified docs for finish method.
  572. Clarified potentials problems with prepare_cached() thanks to Stephen Clouse.
  573. =head2 Changes in DBI 1.21, 7th February 2002
  574. The minimum supported perl version is now 5.005_03.
  575. Fixed DBD::Proxy support for AutoCommit thanks to Jochen Wiedmann.
  576. Fixed DBI::ProxyServer bind_param(_inout) handing thanks to Oleg Mechtcheriakov.
  577. Fixed DBI::ProxyServer fetch loop thanks to nobull@mail.com.
  578. Fixed install_driver do-the-right-thing with $@ on error. It, and connect(),
  579. will leave $@ empty on success and holding the error message on error.
  580. Thanks to Jay Lawrence, Gavin Sherlock and others for the bug report.
  581. Fixed fetchrow_hashref to assign columns to the hash left-to-right
  582. so later fields with the same name overwrite earlier ones
  583. as per DBI < 1.15, thanks to Kay Roepke.
  584. Changed tables() to use quote_indentifier() if the driver returns a
  585. true value for $dbh->get_info(29) # SQL_IDENTIFIER_QUOTE_CHAR
  586. Changed ping() so it no longer triggers RaiseError/PrintError.
  587. Changed connect() to not call $class->install_driver unless needed.
  588. Changed DESTROY to catch fatal exceptions and append to $@.
  589. Added ISO SQL/CLI & ODBCv3 data type definitions thanks to Steffen Goeldner.
  590. Removed the definition of SQL_BIGINT data type constant as the value is
  591. inconsistent between standards (ODBC=-5, SQL/CLI=25).
  592. Added $dbh->column_info(...) thanks to Steffen Goeldner.
  593. Added $dbh->foreign_key_info(...) thanks to Steffen Goeldner.
  594. Added $dbh->quote_identifier(...) insipred by Simon Oliver.
  595. Added $dbh->set_err(...) for DBD authors and DBI subclasses
  596. (actually been there for a while, now expanded and documented).
  597. Added $h->{HandleError} = sub { ... } addition and/or alternative
  598. to RaiseError/PrintError. See the docs for more info.
  599. Added $h->{TraceLevel} = N attribute to set/get trace level of handle
  600. thus can set trace level via an (eg externally specified) DSN
  601. using the embedded attribute syntax:
  602. $dsn = 'dbi:DB2(PrintError=1,TraceLevel=2):dbname';
  603. Plus, you can also now do: local($h->{TraceLevel}) = N;
  604. (but that leaks a little memory in some versions of perl).
  605. Added some call tree information to trace output if trace level >= 3
  606. With thanks to Graham Barr for the stack walking code.
  607. Added experimental undocumented $dbh->preparse(), see t/preparse.t
  608. With thanks to Scott T. Hildreth for much of the work.
  609. Added Fowler/Noll/Vo hash type as an option to DBI::hash().
  610. Documentation changes:
  611. Added DBI::Changes so now you can "perldoc DBI::Changes", yeah!
  612. Added selectrow_arrayref & selectrow_hashref docs thanks to Doug Wilson.
  613. Added 'Standards Reference Information' section to docs to gather
  614. together all references to relevant on-line standards.
  615. Added link to poop.sourceforge.net into the docs thanks to Dave Rolsky.
  616. Added link to hyperlinked BNF for SQL92 thanks to Jeff Zucker.
  617. Added 'Subclassing the DBI' docs thanks to Stephen Clouse, and
  618. then changed some of them to reflect the new approach to subclassing.
  619. Added stronger wording to description of $h->{private_*} attributes.
  620. Added docs for DBI::hash.
  621. Driver API changes:
  622. Now a COPY of the DBI->connect() attributes is passed to the driver
  623. connect() method, so it can process and delete any elements it wants.
  624. Deleting elements reduces/avoids the explicit
  625. $dbh->{$_} = $attr->{$_} foreach keys %$attr;
  626. that DBI->connect does after the driver connect() method returns.
  627. =head2 Changes in DBI 1.20, 24th August 2001
  628. WARNING: This release contains two changes that may affect your code.
  629. : Any code using selectall_hashref(), which was added in March 2001, WILL
  630. : need to be changed. Any code using fetchall_arrayref() with a non-empty
  631. : hash slice parameter may, in a few rare cases, need to be changed.
  632. : See the change list below for more information about the changes.
  633. : See the DBI documentation for a description of current behaviour.
  634. Fixed memory leak thanks to Toni Andjelkovic.
  635. Changed fetchall_arrayref({ foo=>1, ...}) specification again (sorry):
  636. The key names of the returned hashes is identical to the letter case of
  637. the names in the parameter hash, regardless of the L</FetchHashKeyName>
  638. attribute. The letter case is ignored for matching.
  639. Changed fetchall_arrayref([...]) array slice syntax specification to
  640. clarify that the numbers in the array slice are perl index numbers
  641. (which start at 0) and not column numbers (which start at 1).
  642. Added { Columns=>... } and { Slice =>... } attributes to selectall_arrayref()
  643. which is passed to fetchall_arrayref() so it can fetch hashes now.
  644. Added a { Columns => [...] } attribute to selectcol_arrayref() so that
  645. the list it returns can be built from more than one column per row.
  646. Why? Consider my %hash = @{$dbh->selectcol_arrayref($sql,{ Columns=>[1,2]})}
  647. to return id-value pairs which can be used directly to build a hash.
  648. Added $hash_ref = $sth->fetchall_hashref( $key_field )
  649. which returns a ref to a hash with, typically, one element per row.
  650. $key_field is the name of the field to get the key for each row from.
  651. The value of the hash for each row is a hash returned by fetchrow_hashref.
  652. Changed selectall_hashref to return a hash ref (from fetchall_hashref)
  653. and not an array of hashes as it has since DBI 1.15 (end March 2001).
  654. WARNING: THIS CHANGE WILL BREAK ANY CODE USING selectall_hashref()!
  655. Sorry, but I think this is an important regularization of the API.
  656. To get previous selectall_hashref() behaviour (an array of hash refs)
  657. change $ary_ref = $dbh->selectall_hashref( $statement, undef, @bind);
  658. to $ary_ref = $dbh->selectall_arrayref($statement, { Columns=>{} }, @bind);
  659. Added NAME_lc_hash, NAME_uc_hash, NAME_hash statement handle attributes.
  660. which return a ref to a hash of field_name => field_index (0..n-1) pairs.
  661. Fixed select_hash() example thanks to Doug Wilson.
  662. Removed (unbundled) DBD::ADO and DBD::Multiplex from the DBI distribution.
  663. The latest versions of those modules are available from CPAN sites.
  664. Added $dbh->begin_work. This method causes AutoCommit to be turned
  665. off just until the next commit() or rollback().
  666. Driver authors: if the DBIcf_BegunWork flag is set when your commit or
  667. rollback method is called then please turn AutoCommit on and clear the
  668. DBIcf_BegunWork flag. If you don't then the DBI will but it'll be much
  669. less efficient and won't handle error conditions very cleanly.
  670. Retested on perl 5.4.4, but the DBI won't support 5.4.x much longer.
  671. Added text to SUPPORT section of the docs:
  672. For direct DBI and DBD::Oracle support, enhancement, and related work
  673. I am available for consultancy on standard commercial terms.
  674. Added text to ACKNOWLEDGEMENTS section of the docs:
  675. Much of the DBI and DBD::Oracle was developed while I was Technical
  676. Director (CTO) of the Paul Ingram Group (www.ig.co.uk). So I'd
  677. especially like to thank Paul for his generosity and vision in
  678. supporting this work for many years.
  679. =head2 Changes in DBI 1.19, 20th July 2001
  680. Made fetchall_arrayref({ foo=>1, ...}) be more strict to the specification
  681. in relation to wanting hash slice keys to be lowercase names.
  682. WARNING: If you've used fetchall_arrayref({...}) with a hash slice
  683. that contains keys with uppercase letters then your code will break.
  684. (As far as I recall the spec has always said don't do that.)
  685. Fixed $sth->execute() to update $dbh->{Statement} to $sth->{Statement}.
  686. Added row number to trace output for fetch method calls.
  687. Trace level 1 no longer shows fetches with row>1 (to reduce output volume).
  688. Added $h->{FetchHashKeyName} = 'NAME_lc' or 'NAME_uc' to alter
  689. behaviour of fetchrow_hashref() method. See docs.
  690. Added type_info quote caching to quote() method thanks to Dean Kopesky.
  691. Makes using quote() with second data type param much much faster.
  692. Added type_into_all() caching to type_info(), spotted by Dean Kopesky.
  693. Added new API definition for table_info() and tables(),
  694. driver authors please note!
  695. Added primary_key_info() to DBI API thanks to Steffen Goeldner.
  696. Added primary_key() to DBI API as simpler interface to primary_key_info().
  697. Indent and other fixes for DBI::DBD doc thanks to H.Merijn Brand.
  698. Added prepare_cached() insert_hash() example thanks to Doug Wilson.
  699. Removed false docs for fetchall_hashref(), use fetchall_arrayref({}).
  700. =head2 Changes in DBI 1.18, 4th June 2001
  701. Fixed that altering ShowErrorStatement also altered AutoCommit!
  702. Thanks to Jeff Boes for spotting that clanger.
  703. Fixed DBD::Proxy to handle commit() and rollback(). Long overdue, sorry.
  704. Fixed incompatibility with perl 5.004 (but no one's using that right? :)
  705. Fixed connect_cached and prepare_cached to not be affected by the order
  706. of elements in the attribute hash. Spotted by Mitch Helle-Morrissey.
  707. Fixed version number of DBI::Shell
  708. reported by Stuhlpfarrer Gerhard and others.
  709. Defined and documented table_info() attribute semantics (ODBC compatible)
  710. thanks to Olga Voronova, who also implemented then in DBD::Oracle.
  711. Updated Win32::DBIODBC (Win32::ODBC emulation) thanks to Roy Lee.
  712. =head2 Changes in DBI 1.16, 30th May 2001
  713. Reimplemented fetchrow_hashref in C, now fetches about 25% faster!
  714. Changed behaviour if both PrintError and RaiseError are enabled
  715. to simply do both (in that order, obviously :)
  716. Slight reduction in DBI handle creation overhead.
  717. Fixed $dbh->{Driver} & $sth->{Database} to return 'outer' handles.
  718. Fixed execute param count check to honour RaiseError spotted by Belinda Giardie.
  719. Fixed build for perl5.6.1 with PERLIO thanks to H.Merijn Brand.
  720. Fixed client sql restrictions in ProxyServer.pm thanks to Jochen Wiedmann.
  721. Fixed batch mode command parsing in Shell thanks to Christian Lemburg.
  722. Fixed typo in selectcol_arrayref docs thanks to Jonathan Leffler.
  723. Fixed selectrow_hashref to be available to callers thanks to T.J.Mather.
  724. Fixed core dump if statement handle didn't define Statement attribute.
  725. Added bind_param_inout docs to DBI::DBD thanks to Jonathan Leffler.
  726. Added note to data_sources() method docs that some drivers may
  727. require a connected database handle to be supplied as an attribute.
  728. Trace of install_driver method now shows path of driver file loaded.
  729. Changed many '||' to 'or' in the docs thanks to H.Merijn Brand.
  730. Updated DBD::ADO again (improvements in error handling) from Tom Lowery.
  731. Updated Win32::DBIODBC (Win32::ODBC emulation) thanks to Roy Lee.
  732. Updated email and web addresses in DBI::FAQ thanks to Michael A Chase.
  733. =head2 Changes in DBI 1.15, 28th March 2001
  734. Added selectrow_arrayref
  735. Added selectrow_hashref
  736. Added selectall_hashref thanks to Leon Brocard.
  737. Added DBI->connect(..., { dbi_connect_method => 'method' })
  738. Added $dbh->{Statement} aliased to most recent child $sth->{Statement}.
  739. Added $h->{ShowErrorStatement}=1 to cause the appending of the
  740. relevant Statement text to the RaiseError/PrintError text.
  741. Modified type_info to always return hash keys in uppercase and
  742. to not require uppercase 'DATA_TYPE' key from type_info_all.
  743. Thanks to Jennifer Tong and Rob Douglas.
  744. Added \%attr param to tables() and table_info() methods.
  745. Trace method uses warn() if it can't open the new file.
  746. Trace shows source line and filename during global destruction.
  747. Updated packages:
  748. Updated Win32::DBIODBC (Win32::ODBC emulation) thanks to Roy Lee.
  749. Updated DBD::ADO to much improved version 0.4 from Tom Lowery.
  750. Updated DBD::Sponge to include $sth->{PRECISION} thanks to Tom Lowery.
  751. Changed DBD::ExampleP to use lstat() instead of stat().
  752. Documentation:
  753. Documented $DBI::lasth (which has been there since day 1).
  754. Documented SQL_* names.
  755. Clarified and extended docs for $h->state thanks to Masaaki Hirose.
  756. Clarified fetchall_arrayref({}) docs (thanks to, er, someone!).
  757. Clarified type_info_all re lettercase and index values.
  758. Updated DBI::FAQ to 0.38 thanks to Alligator Descartes.
  759. Added cute bind_columns example thanks to H.Merijn Brand.
  760. Extended docs on \%attr arg to data_sources method.
  761. Makefile.PL
  762. Removed obscure potential 'rm -rf /' (thanks to Ulrich Pfeifer).
  763. Removed use of glob and find (thanks to Michael A. Chase).
  764. Proxy:
  765. Removed debug messages from DBD::Proxy AUTOLOAD thanks to Brian McCauley.
  766. Added fix for problem using table_info thanks to Tom Lowery.
  767. Added better determination of where to put the pid file, and...
  768. Added KNOWN ISSUES section to DBD::Proxy docs thanks to Jochen Wiedmann.
  769. Shell:
  770. Updated DBI::Format to include DBI::Format::String thanks to Tom Lowery.
  771. Added describe command thanks to Tom Lowery.
  772. Added columnseparator option thanks to Tom Lowery (I think).
  773. Added 'raw' format thanks to, er, someone, maybe Tom again.
  774. Known issues:
  775. Perl 5.005 and 5.006 both leak memory doing local($handle->{Foo}).
  776. Perl 5.004 doesn't. The leak is not a DBI or driver bug.
  777. =head2 Changes in DBI 1.14, 14th June 2000
  778. NOTE: This version is the one the DBI book is based on.
  779. NOTE: This version requires at least Perl 5.004.
  780. Perl 5.6 ithreads changes with thanks to Doug MacEachern.
  781. Changed trace output to use PerlIO thanks to Paul Moore.
  782. Fixed bug in RaiseError/PrintError handling.
  783. (% chars in the error string could cause a core dump.)
  784. Fixed Win32 PerlEx IIS concurrency bugs thanks to Murray Nesbitt.
  785. Major documentation polishing thanks to Linda Mui at O'Reilly.
  786. Password parameter now shown as **** in trace output.
  787. Added two fields to type_info and type_info_all.
  788. Added $dsn to PrintError/RaiseError message from DBI->connect().
  789. Changed prepare_cached() croak to carp if sth still Active.
  790. Added prepare_cached() example to the docs.
  791. Added further DBD::ADO enhancements from Thomas Lowery.
  792. =head2 Changes in DBI 1.13, 11th July 1999
  793. Fixed Win32 PerlEx IIS concurrency bugs thanks to Murray Nesbitt.
  794. Fixed problems with DBD::ExampleP long_list test mode.
  795. Added SQL_WCHAR SQL_WVARCHAR SQL_WLONGVARCHAR and SQL_BIT
  796. to list of known and exportable SQL types.
  797. Improved data fetch performance of DBD::ADO.
  798. Added GetTypeInfo to DBD::ADO thanks to Thomas Lowery.
  799. Actually documented connect_cached thanks to Michael Schwern.
  800. Fixed user/key/cipher bug in ProxyServer thanks to Joshua Pincus.
  801. =head2 Changes in DBI 1.12, 29th June 1999
  802. Fixed significant DBD::ADO bug (fetch skipped first row).
  803. Fixed ProxyServer bug handling non-select statements.
  804. Fixed VMS problem with t/examp.t thanks to Craig Berry.
  805. Trace only shows calls to trace_msg and _set_fbav at high levels.
  806. Modified t/examp.t to workaround Cygwin buffering bug.
  807. =head2 Changes in DBI 1.11, 17th June 1999
  808. Fixed bind_columns argument checking to allow a single arg.
  809. Fixed problems with internal default_user method.
  810. Fixed broken DBD::ADO.
  811. Made default $DBI::rows more robust for some obscure cases.
  812. =head2 Changes in DBI 1.10, 14th June 1999
  813. Fixed trace_msg.al error when using Apache.
  814. Fixed dbd_st_finish enhancement in Driver.xst (internals).
  815. Enable drivers to define default username and password
  816. and temporarily disabled warning added in 1.09.
  817. Thread safety optimised for single thread case.
  818. =head2 Changes in DBI 1.09, 9th June 1999
  819. Added optional minimum trace level parameter to trace_msg().
  820. Added warning in Makefile.PL that DBI will require 5.004 soon.
  821. Added $dbh->selectcol_arrayref($statement) method.
  822. Fixed fetchall_arrayref hash-slice mode undef NAME problem.
  823. Fixed problem with tainted parameter checking and t/examp.t.
  824. Fixed problem with thread safety code, including 64 bit machines.
  825. Thread safety now enabled by default for threaded perls.
  826. Enhanced code for MULTIPLICITY/PERL_OBJECT from ActiveState.
  827. Enhanced prepare_cached() method.
  828. Minor changes to trace levels (less internal info at level 2).
  829. Trace log now shows "!! ERROR..." before the "<- method" line.
  830. DBI->connect() now warn's if user / password is undefined and
  831. DBI_USER / DBI_PASS environment variables are not defined.
  832. The t/proxy.t test now ignores any /etc/dbiproxy.conf file.
  833. Added portability fixes for MacOS from Chris Nandor.
  834. Updated mailing list address from fugue.com to isc.org.
  835. =head2 Changes in DBI 1.08, 12th May 1999
  836. Much improved DBD::ADO driver thanks to Phlip Plumlee and others.
  837. Connect now allows you to specify attribute settings within the DSN
  838. E.g., "dbi:Driver(RaiseError=>1,Taint=>1,AutoCommit=>0):dbname"
  839. The $h->{Taint} attribute now also enables taint checking of
  840. arguments to almost all DBI methods.
  841. Improved trace output in various ways.
  842. Fixed bug where $sth->{NAME_xx} was undef in some situations.
  843. Fixed code for MULTIPLICITY/PERL_OBJECT thanks to Alex Smishlajev.
  844. Fixed and documented DBI->connect_cached.
  845. Workaround for Cygwin32 build problem with help from Jong-Pork Park.
  846. bind_columns no longer needs undef or hash ref as first parameter.
  847. =head2 Changes in DBI 1.07, 6th May 1999
  848. Trace output now shows contents of array refs returned by DBI.
  849. Changed names of some result columns from type_info, type_info_all,
  850. tables and table_info to match ODBC 3.5 / ISO/IEC standards.
  851. Many fixes for DBD::Proxy and ProxyServer.
  852. Fixed error reporting in install_driver.
  853. Major enhancement to DBI::W32ODBC from Patrick Hollins.
  854. Added $h->{Taint} to taint fetched data if tainting (perl -T).
  855. Added code for MULTIPLICITY/PERL_OBJECT contributed by ActiveState.
  856. Added $sth->more_results (undocumented for now).
  857. =head2 Changes in DBI 1.06, 6th January 1999
  858. Fixed Win32 Makefile.PL problem in 1.04 and 1.05.
  859. Significant DBD::Proxy enhancements and fixes
  860. including support for bind_param_inout (Jochen and I)
  861. Added experimental DBI->connect_cached method.
  862. Added $sth->{NAME_uc} and $sth->{NAME_lc} attributes.
  863. Enhanced fetchrow_hashref to take an attribute name arg.
  864. =head2 Changes in DBI 1.05, 4th January 1999
  865. Improved DBD::ADO connect (thanks to Phlip Plumlee).
  866. Improved thread safety (thanks to Jochen Wiedmann).
  867. [Quick release prompted by truncation of copies on CPAN]
  868. =head2 Changes in DBI 1.04, 3rd January 1999
  869. Fixed error in Driver.xst. DBI build now tests Driver.xst.
  870. Removed unused variable compiler warnings in Driver.xst.
  871. DBI::DBD module now tested during DBI build.
  872. Further clarification in the DBI::DBD driver writers manual.
  873. Added optional name parameter to $sth->fetchrow_hashref.
  874. =head2 Changes in DBI 1.03, 1st January 1999
  875. Now builds with Perl>=5.005_54 (PERL_POLLUTE in DBIXS.h)
  876. DBI trace trims path from "at yourfile.pl line nnn".
  877. Trace level 1 now shows statement passed to prepare.
  878. Assorted improvements to the DBI manual.
  879. Assorted improvements to the DBI::DBD driver writers manual.
  880. Fixed $dbh->quote prototype to include optional $data_type.
  881. Fixed $dbh->prepare_cached problems.
  882. $dbh->selectrow_array behaves better in scalar context.
  883. Added a (very) experimental DBD::ADO driver for Win32 ADO.
  884. Added experimental thread support (perl Makefile.PL -thread).
  885. Updated the DBI::FAQ - thanks to Alligator Descartes.
  886. The following changes were implemented and/or packaged
  887. by Jochen Wiedmann - thanks Jochen:
  888. Added a Bundle for CPAN installation of DBI, the DBI proxy
  889. server and prerequisites (lib/Bundle/DBI.pm).
  890. DBI->available_drivers uses File::Spec, if available.
  891. This makes it work on MacOS. (DBI.pm)
  892. Modified type_info to work with read-only values returned
  893. by type_info_all. (DBI.pm)
  894. Added handling of magic values in $sth->execute,
  895. $sth->bind_param and other methods (Driver.xst)
  896. Added Perl's CORE directory to the linkers path on Win32,
  897. required by recent versions of ActiveState Perl.
  898. Fixed DBD::Sponge to work with empty result sets.
  899. Complete rewrite of DBI::ProxyServer and DBD::Proxy.
  900. =head2 Changes in DBI 1.02, 2nd September 1998
  901. Fixed DBI::Shell including @ARGV and /current.
  902. Added basic DBI::Shell test.
  903. Renamed DBI::Shell /display to /format.
  904. =head2 Changes in DBI 1.01, 2nd September 1998
  905. Many enhancements to Shell (with many contributions from
  906. Jochen Wiedmann, Tom Lowery and Adam Marks).
  907. Assorted fixes to DBD::Proxy and DBI::ProxyServer.
  908. Tidied up trace messages - trace(2) much cleaner now.
  909. Added $dbh->{RowCacheSize} and $sth->{RowsInCache}.
  910. Added experimental DBI::Format (mainly for DBI::Shell).
  911. Fixed fetchall_arrayref($slice_hash).
  912. DBI->connect now honours PrintError=1 if connect fails.
  913. Assorted clarifications to the docs.
  914. =head2 Changes in DBI 1.00, 14th August 1998
  915. The DBI is no longer 'alpha' software!
  916. Added $dbh->tables and $dbh->table_info.
  917. Documented \%attr arg to data_sources method.
  918. Added $sth->{TYPE}, $sth->{PRECISION} and $sth->{SCALE}.
  919. Added $sth->{Statement}.
  920. DBI::Shell now uses neat_list to print results
  921. It also escapes "'" chars and converts newlines to spaces.
  922. =head2 Changes in DBI 0.95, 10th August 1998
  923. WARNING: THIS IS AN EXPERIMENTAL RELEASE!
  924. Fixed 0.94 slip so it will build on pre-5.005 again.
  925. Added DBI_AUTOPROXY environment variable.
  926. Array ref returned from fetch/fetchrow_arrayref now readonly.
  927. Improved connect error reporting by DBD::Proxy.
  928. All trace/debug messages from DBI now go to trace file.
  929. =head2 Changes in DBI 0.94, 9th August 1998
  930. WARNING: THIS IS AN EXPERIMENTAL RELEASE!
  931. Added DBD::Shell and dbish interactive DBI shell. Try it!
  932. Any database attribs can be set via DBI->connect(,,, \%attr).
  933. Added _get_fbav and _set_fbav methods for Perl driver developers
  934. (see ExampleP driver for perl usage). Drivers which don't use
  935. one of these methods (either via XS or Perl) are not compliant.
  936. DBI trace now shows adds " at yourfile.pl line nnn"!
  937. PrintError and RaiseError now prepend driver and method name.
  938. The available_drivers method no longer returns NullP or Sponge.
  939. Added $dbh->{Name}.
  940. Added $dbh->quote($value, $data_type).
  941. Added more hints to install_driver failure message.
  942. Added DBD::Proxy and DBI::ProxyServer (from Jochen Wiedmann).
  943. Added $DBI::neat_maxlen to control truncation of trace output.
  944. Added $dbh->selectall_arrayref and $dbh->selectrow_array methods.
  945. Added $dbh->tables.
  946. Added $dbh->type_info and $dbh->type_info_all.
  947. Added $h->trace_msg($msg) to write to trace log.
  948. Added @bool = DBI::looks_like_number(@ary).
  949. Many assorted improvements to the DBI docs.
  950. =head2 Changes in DBI 0.93, 13th February 1998
  951. Fixed DBI::DBD::dbd_postamble bug causing 'Driver.xsi not found' errors.
  952. Changes to handling of 'magic' values in neatsvpv (used by trace).
  953. execute (in Driver.xst) stops binding after first bind error.
  954. This release requires drivers to be rebuilt.
  955. =head2 Changes in DBI 0.92, 3rd February 1998
  956. Fixed per-handle memory leak (with many thanks to Irving Reid).
  957. Added $dbh->prepare_cached() caching variant of $dbh->prepare.
  958. Added some attributes:
  959. $h->{Active} is the handle 'Active' (vague concept) (boolean)
  960. $h->{Kids} e.g. number of sth's associated with a dbh
  961. $h->{ActiveKids} number of the above which are 'Active'
  962. $dbh->{CachedKids} ref to prepare_cached sth cache
  963. Added support for general-purpose 'private_' attributes.
  964. Added experimental support for subclassing the DBI: see t/subclass.t
  965. Added SQL_ALL_TYPES to exported :sql_types.
  966. Added dbd_dbi_dir() and dbd_dbi_arch_dir() to DBI::DBD module so that
  967. DBD Makefile.PLs can work with the DBI installed in non-standard locations.
  968. Fixed 'Undefined value' warning and &sv_no output from neatsvpv/trace.
  969. Fixed small 'once per interpreter' leak.
  970. Assorted minor documentation fixes.
  971. =head2 Changes in DBI 0.91, 10th December 1997
  972. NOTE: This fix may break some existing scripts:
  973. DBI->connect("dbi:...",$user,$pass) was not setting AutoCommit and PrintError!
  974. DBI->connect(..., { ... }) no longer sets AutoCommit or PrintError twice.
  975. DBI->connect(..., { RaiseError=>1 }) now croaks if connect fails.
  976. Fixed $fh parameter of $sth->dump_results;
  977. Added default statement DESTROY method which carps.
  978. Added default driver DESTROY method to silence AUTOLOAD/__DIE__/CGI::Carp
  979. Added more SQL_* types to %EXPORT_TAGS and @EXPORT_OK.
  980. Assorted documentation updates (mainly clarifications).
  981. Added workaround for perl's 'sticky lvalue' bug.
  982. Added better warning for bind_col(umns) where fields==0.
  983. Fixed to build okay with 5.004_54 with or without USE_THREADS.
  984. Note that the DBI has not been tested for thread safety yet.
  985. =head2 Changes in DBI 0.90, 6th September 1997
  986. Can once again be built with Perl 5.003.
  987. The DBI class can be subclassed more easily now.
  988. InactiveDestroy fixed for drivers using the *.xst template.
  989. Slightly faster handle creation.
  990. Changed prototype for dbd_*_*_attrib() to add extra param.
  991. Note: 0.90, 0.89 and possibly some other recent versions have
  992. a small memory leak. This will be fixed in the next release.
  993. =head2 Changes in DBI 0.89, 25th July 1997
  994. Minor fix to neatsvpv (mainly used for debug trace) to workaround
  995. bug in perl where SvPV removes IOK flag from an SV.
  996. Minor updates to the docs.
  997. =head2 Changes in DBI 0.88, 22nd July 1997
  998. Fixed build for perl5.003 and Win32 with Borland.
  999. Fixed documentation formatting.
  1000. Fixed DBI_DSN ignored for old-style connect (with explicit driver).
  1001. Fixed AutoCommit in DBD::ExampleP
  1002. Fixed $h->trace.
  1003. The DBI can now export SQL type values: use DBI ':sql_types';
  1004. Modified Driver.xst and renamed DBDI.h to dbd_xsh.h
  1005. =head2 Changes in DBI 0.87, 18th July 1997
  1006. Fixed minor type clashes.
  1007. Added more docs about placeholders and bind values.
  1008. =head2 Changes in DBI 0.86, 16th July 1997
  1009. Fixed failed connect causing 'unblessed ref' and other errors.
  1010. Drivers must handle AutoCommit FETCH and STORE else DBI croaks.
  1011. Added $h->{LongReadLen} and $h->{LongTruncOk} attributes for BLOBS.
  1012. Added DBI_USER and DBI_PASS env vars. See connect docs for usage.
  1013. Added DBI->trace() to set global trace level (like per-handle $h->trace).
  1014. PERL_DBI_DEBUG env var renamed DBI_DEBUG (old name still works for now).
  1015. Updated docs, including commit, rollback, AutoCommit and Transactions sections.
  1016. Added bind_param method and execute(@bind_values) to docs.
  1017. Fixed fetchall_arrayref.
  1018. Since the DBIS structure has change the internal version numbers have also
  1019. changed (DBIXS_VERSION == 9 and DBISTATE_VERSION == 9) so drivers will have
  1020. to be recompiled. The test is also now more sensitive and the version
  1021. mismatch error message now more clear about what to do. Old drivers are
  1022. likely to core dump (this time) until recompiled for this DBI. In future
  1023. DBI/DBD version mismatch will always produce a clear error message.
  1024. Note that this DBI release contains and documents many new features
  1025. that won't appear in drivers for some time. Driver writers might like
  1026. to read perldoc DBI::DBD and comment on or apply the information given.
  1027. =head2 Changes in DBI 0.85, 25th June 1997
  1028. NOTE: New-style connect now defaults to AutoCommit mode unless
  1029. { AutoCommit => 0 } specified in connect attributes. See the docs.
  1030. AutoCommit attribute now defined and tracked by DBI core.
  1031. Drivers should use/honour this and not implement their own.
  1032. Added pod doc changes from Andreas and Jonathan.
  1033. New DBI_DSN env var default for connect method. See docs.
  1034. Documented the func method.
  1035. Fixed "Usage: DBD::_::common::DESTROY" error.
  1036. Fixed bug which set some attributes true when there value was fetched.
  1037. Added new internal DBIc_set() macro for drivers to use.
  1038. =head2 Changes in DBI 0.84, 20th June 1997
  1039. Added $h->{PrintError} attribute which, if set true, causes all errors to
  1040. trigger a warn().
  1041. New-style DBI->connect call now automatically sets PrintError=1 unless
  1042. { PrintError => 0 } specified in the connect attributes. See the docs.
  1043. The old-style connect with a separate driver parameter is deprecated.
  1044. Fixed fetchrow_hashref.
  1045. Renamed $h->debug to $h->trace() and added a trace filename arg.
  1046. Assorted other minor tidy-ups.
  1047. =head2 Changes in DBI 0.83, 11th June 1997
  1048. Added driver specification syntax to DBI->connect data_source
  1049. parameter: DBI->connect('dbi:driver:...', $user, $passwd);
  1050. The DBI->data_sources method should return data_source
  1051. names with the appropriate 'dbi:driver:' prefix.
  1052. DBI->connect will warn if \%attr is true but not a hash ref.
  1053. Added the new fetchrow methods:
  1054. @row_ary = $sth->fetchrow_array;
  1055. $ary_ref = $sth->fetchrow_arrayref;
  1056. $hash_ref = $sth->fetchrow_hashref;
  1057. The old fetch and fetchrow methods still work.
  1058. Driver implementors should implement the new names for
  1059. fetchrow_array and fetchrow_arrayref ASAP (use the xs ALIAS:
  1060. directive to define aliases for fetch and fetchrow).
  1061. Fixed occasional problems with t/examp.t test.
  1062. Added automatic errstr reporting to the debug trace output.
  1063. Added the DBI FAQ from Alligator Descartes in module form for
  1064. easy reading via "perldoc DBI::FAQ". Needs reformatting.
  1065. Unknown driver specific attribute names no longer croak.
  1066. Fixed problem with internal neatsvpv macro.
  1067. =head2 Changes in DBI 0.82, 23rd May 1997
  1068. Added $h->{RaiseError} attribute which, if set true, causes all errors to
  1069. trigger a die(). This makes it much easier to implement robust applications
  1070. in terms of higher level eval { ... } blocks and rollbacks.
  1071. Added DBI->data_sources($driver) method for implementation by drivers.
  1072. The quote method now returns the string NULL (without quotes) for undef.
  1073. Added VMS support thanks to Dan Sugalski.
  1074. Added a 'quick start guide' to the README.
  1075. Added neatsvpv function pointer to DBIS structure to make it available for
  1076. use by drivers. A macro defines neatsvpv(sv,len) as (DBIS->neatsvpv(sv,len)).
  1077. Old XS macro SV_YES_NO changes to standard boolSV.
  1078. Since the DBIS structure has change the internal version numbers have also
  1079. changed (DBIXS_VERSION == 8 and DBISTATE_VERSION == 8) so drivers will have
  1080. to be recompiled.
  1081. =head2 Changes in DBI 0.81, 7th May 1997
  1082. Minor fix to let DBI build using less modern perls.
  1083. Fixed a suprious typo warning.
  1084. =head2 Changes in DBI 0.80, 6th May 1997
  1085. Builds with no changes on NT using perl5.003_99 (with thanks to Jeffrey Urlwin).
  1086. Automatically supports Apache::DBI (with thanks to Edmund Mergl).
  1087. DBI scripts no longer need to be modified to make use of Apache::DBI.
  1088. Added a ping method and an experimental connect_test_perf method.
  1089. Added a fetchhash and fetch_all methods.
  1090. The func method no longer pre-clears err and errstr.
  1091. Added ChopBlanks attribute (currently defaults to off, that may change).
  1092. Support for the attribute needs to be implemented by individual drivers.
  1093. Reworked tests into standard t/*.t form.
  1094. Added more pod text. Fixed assorted bugs.
  1095. =head2 Changes in DBI 0.79, 7th Apr 1997
  1096. Minor release. Tidied up pod text and added some more descriptions
  1097. (especially disconnect). Minor changes to DBI.xs to remove compiler
  1098. warnings.
  1099. =head2 Changes in DBI 0.78, 28th Mar 1997
  1100. Greatly extended the pod documentation in DBI.pm, including the under
  1101. used bind_columns method. Use 'perldoc DBI' to read after installing.
  1102. Fixed $h->err. Fetching an attribute value no longer resets err.
  1103. Added $h->{InactiveDestroy}, see documentation for details.
  1104. Improved debugging of cached ('quick') attribute fetches.
  1105. errstr will return err code value if there is no string value.
  1106. Added DBI/W32ODBC to the distribution. This is a pure-perl experimental
  1107. DBI emulation layer for Win32::ODBC. Note that it's unsupported, your
  1108. mileage will vary, and bug reports without fixes will probably be ignored.
  1109. =head2 Changes in DBI 0.77, 21st Feb 1997
  1110. Removed erroneous $h->errstate and $h->errmsg methods from DBI.pm.
  1111. Added $h->err, $h->errstr and $h->state default methods in DBI.xs.
  1112. Updated informal DBI API notes in DBI.pm. Updated README slightly.
  1113. DBIXS.h now correctly installed into INST_ARCHAUTODIR.
  1114. (DBD authors will need to edit their Makefile.PL's to use
  1115. -I$(INSTALLSITEARCH)/auto/DBI -I$(INSTALLSITEARCH)/DBI)
  1116. =head2 Changes in DBI 0.76, 3rd Feb 1997
  1117. Fixed a compiler type warnings (pedantic IRIX again).
  1118. =head2 Changes in DBI 0.75, 27th Jan 1997
  1119. Fix problem introduced by a change in Perl5.003_XX.
  1120. Updated README and DBI.pm docs.
  1121. =head2 Changes in DBI 0.74, 14th Jan 1997
  1122. Dispatch now sets dbi_debug to the level of the current handle
  1123. (this makes tracing/debugging individual handles much easier).
  1124. The '>> DISPATCH' log line now only logged at debug >= 3 (was 2).
  1125. The $csr->NUM_OF_FIELDS attribute can be set if not >0 already.
  1126. You can log to a file using the env var PERL_DBI_DEBUG=/tmp/dbi.log.
  1127. Added a type cast needed by IRIX.
  1128. No longer sets perl_destruct_level unless debug set >= 4.
  1129. Make compatible with PerlIO and sfio.
  1130. =head2 Changes in DBI 0.73, 10th Oct 1996
  1131. Fixed some compiler type warnings (IRIX).
  1132. Fixed DBI->internal->{DebugLog} = $filename.
  1133. Made debug log file unbuffered.
  1134. Added experimental bind_param_inout method to interface.
  1135. Usage: $dbh->bind_param_inout($param, \$value, $maxlen [, \%attribs ])
  1136. (only currently used by DBD::Oracle at this time.)
  1137. =head2 Changes in DBI 0.72, 23 Sep 1996
  1138. Using an undefined value as a handle now gives a better
  1139. error message (mainly useful for emulators like Oraperl).
  1140. $dbh->do($sql, @params) now works for binding placeholders.
  1141. =head2 Changes in DBI 0.71, 10 July 1996
  1142. Removed spurious abort() from invalid handle check.
  1143. Added quote method to DBI interface and added test.
  1144. =head2 Changes in DBI 0.70, 16 June 1996
  1145. Added extra invalid handle check (dbih_getcom)
  1146. Fixed broken $dbh->quote method.
  1147. Added check for old GCC in Makefile.PL
  1148. =head2 Changes in DBI 0.69
  1149. Fixed small memory leak.
  1150. Clarified the behaviour of DBI->connect.
  1151. $dbh->do now returns '0E0' instead of 'OK'.
  1152. Fixed "Can't read $DBI::errstr, lost last handle" problem.
  1153. =head2 Changes in DBI 0.68, 2 Mar 1996
  1154. Changes to suit perl5.002 and site_lib directories.
  1155. Detects old versions ahead of new in @INC.
  1156. =head2 Changes in DBI 0.67, 15 Feb 1996
  1157. Trivial change to test suite to fix a problem shown up by the
  1158. Perl5.002gamma release Test::Harness.
  1159. =head2 Changes in DBI 0.66, 29 Jan 1996
  1160. Minor changes to bring the DBI into line with 5.002 mechanisms,
  1161. specifically the xs/pm VERSION checking mechanism.
  1162. No functionality changes. One no-last-handle bug fix (rare problem).
  1163. Requires 5.002 (beta2 or later).
  1164. =head2 Changes in DBI 0.65, 23 Oct 1995
  1165. Added $DBI::state to hold SQL CLI / ODBC SQLSTATE value.
  1166. SQLSTATE "00000" (success) is returned as "" (false), all else is true.
  1167. If a driver does not explicitly initialise it (via $h->{State} or
  1168. DBIc_STATE(imp_xxh) then $DBI::state will automatically return "" if
  1169. $DBI::err is false otherwise "S1000" (general error).
  1170. As always, this is a new feature and liable to change.
  1171. The is *no longer* a default error handler!
  1172. You can add your own using push(@{$h->{Handlers}}, sub { ... })
  1173. but be aware that this interface may change (or go away).
  1174. The DBI now automatically clears $DBI::err, errstr and state before
  1175. calling most DBI methods. Previously error conditions would persist.
  1176. Added DBIh_CLEAR_ERROR(imp_xxh) macro.
  1177. DBI now EXPORT_OK's some utility functions, neat($value),
  1178. neat_list(@values) and dump_results($sth).
  1179. Slightly enhanced t/min.t minimal test script in an effort to help
  1180. narrow down the few stray core dumps that some porters still report.
  1181. Renamed readblob to blob_read (old name still works but warns).
  1182. Added default blob_copy_to_file method.
  1183. Added $sth = $dbh->tables method. This returns an $sth for a query
  1184. which has these columns: TABLE_CATALOGUE, TABLE_OWNER, TABLE_NAME,
  1185. TABLE_TYPE, REMARKS in that order. The TABLE_CATALOGUE column
  1186. should be ignored for now.
  1187. =head2 Changes in DBI 0.64, 23 Oct 1995
  1188. Fixed 'disconnect invalidates 1 associated cursor(s)' problem.
  1189. Drivers using DBIc_ACTIVE_on/off() macros should not need any changes
  1190. other than to test for DBIc_ACTIVE_KIDS() instead of DBIc_KIDS().
  1191. Fixed possible core dump in dbih_clearcom during global destruction.
  1192. =head2 Changes in DBI 0.63, 1 Sep 1995
  1193. Minor update. Fixed uninitialised memory bug in method
  1194. attribute handling and streamlined processing and debugging.
  1195. Revised usage definitions for bind_* methods and readblob.
  1196. =head2 Changes in DBI 0.62, 26 Aug 1995
  1197. Added method redirection method $h->func(..., $method_name).
  1198. This is now the official way to call private driver methods
  1199. that are not part of the DBI standard. E.g.:
  1200. @ary = $sth->func('ora_types');
  1201. It can also be used to call existing methods. Has very low cost.
  1202. $sth->bind_col columns now start from 1 (not 0) to match SQL.
  1203. $sth->bind_columns now takes a leading attribute parameter (or undef),
  1204. e.g., $sth->bind_columns($attribs, \$col1 [, \$col2 , ...]);
  1205. Added handy DBD_ATTRIBS_CHECK macro to vet attribs in XS.
  1206. Added handy DBD_ATTRIB_GET_SVP, DBD_ATTRIB_GET_BOOL and
  1207. DBD_ATTRIB_GET_IV macros for handling attributes.
  1208. Fixed STORE for NUM_OF_FIELDS and NUM_OF_PARAMS.
  1209. Added FETCH for NUM_OF_FIELDS and NUM_OF_PARAMS.
  1210. Dispatch no longer bothers to call _untie().
  1211. Faster startup via install_method/_add_dispatch changes.
  1212. =head2 Changes in DBI 0.61, 22 Aug 1995
  1213. Added $sth->bind_col($column, \$var [, \%attribs ]);
  1214. This method enables perl variable to be directly and automatically
  1215. updated when a row is fetched. It requires no driver support
  1216. (if the driver has been written to use DBIS->get_fbav).
  1217. Currently \%attribs is unused.
  1218. Added $sth->bind_columns(\$var [, \$var , ...]);
  1219. This method is a short-cut for bind_col which binds all the
  1220. columns of a query in one go (with no attributes). It also
  1221. requires no driver support.
  1222. Added $sth->bind_param($parameter, $var [, \%attribs ]);
  1223. This method enables attributes to be specified when values are
  1224. bound to placeholders. It also enables binding to occur away
  1225. from the execute method to improve execute efficiency.
  1226. The DBI does not provide a default implementation of this.
  1227. See the DBD::Oracle module for a detailed example.
  1228. The DBI now provides default implementations of both fetch and
  1229. fetchrow. Each is written in terms of the other. A driver is
  1230. expected to implement at least one of them.
  1231. More macro and assorted structure changes in DBDXS.h. Sorry!
  1232. The old dbihcom definitions have gone. All fields have macros.
  1233. The imp_xxh_t type is now used within the DBI as well as drivers.
  1234. Drivers must set DBIc_NUM_FIELDS(imp_sth) and DBIc_NUM_PARAMS(imp_sth).
  1235. test.pl includes a trivial test of bind_param and bind_columns.
  1236. =head2 Changes in DBI 0.60, 17 Aug 1995
  1237. This release has significant code changes but much less
  1238. dramatic than the previous release. The new implementors data
  1239. handling mechanism has matured significantly (don't be put off
  1240. by all the struct typedefs in DBIXS.h, there's just to make it
  1241. easier for drivers while keeping things type-safe).
  1242. The DBI now includes two new methods:
  1243. do $dbh->do($statement)
  1244. This method prepares, executes and finishes a statement. It is
  1245. designed to be used for executing one-off non-select statements
  1246. where there is no benefit in reusing a prepared statement handle.
  1247. fetch $array_ref = $sth->fetch;
  1248. This method is the new 'lowest-level' row fetching method. The
  1249. previous @row = $sth->fetchrow method now defaults to calling
  1250. the fetch method and expanding the returned array reference.
  1251. The DBI now provides fallback attribute FETCH and STORE functions
  1252. which drivers should call if they don't recognise an attribute.
  1253. THIS RELEASE IS A GOOD STARTING POINT FOR DRIVER DEVELOPERS!
  1254. Study DBIXS.h from the DBI and Oracle.xs etc from DBD::Oracle.
  1255. There will be further changes in the interface but nothing
  1256. as dramatic as these last two releases! (I hope :-)
  1257. =head2 Changes in DBI 0.59 15 Aug 1995
  1258. NOTE: THIS IS AN UNSTABLE RELEASE!
  1259. Major reworking of internal data management!
  1260. Performance improvements and memory leaks fixed.
  1261. Added a new NullP (empty) driver and a -m flag
  1262. to test.pl to help check for memory leaks.
  1263. Study DBD::Oracle version 0.21 for more details.
  1264. (Comparing parts of v0.21 with v0.20 may be useful.)
  1265. =head2 Changes in DBI 0.58 21 June 1995
  1266. Added DBI->internal->{DebugLog} = $filename;
  1267. Reworked internal logging.
  1268. Added $VERSION.
  1269. Made disconnect_all a compulsary method for drivers.
  1270. =head1 ANCIENT HISTORY
  1271. 12th Oct 1994: First public release of the DBI module.
  1272. (for Perl 5.000-beta-3h)
  1273. 19th Sep 1994: DBperl project renamed to DBI.
  1274. 29th Sep 1992: DBperl project started.
  1275. =cut