/perl/vendor/lib/DBD/ODBC/Changes.pm

http://github.com/dwimperl/perl-5.12.3.0 · Perl · 2158 lines · 1832 code · 326 blank · 0 comment · 135 complexity · ec49078a39feaa8557c3aa5757e2f848 MD5 · raw file

Large files are truncated click here to view the full file

  1. =head1 NAME
  2. DBD::ODBC::Changes - Log of significant changes to the DBD::ODBC
  3. As of $LastChangedDate: 2011-03-06 17:18:35 +0000 (Sun, 06 Mar 2011) $
  4. $Revision: 10667 $
  5. =head2 Changes in DBD::ODBC 1.29 March 8, 2011
  6. * An official release of the 1.28 development releases.
  7. [NOTE]
  8. * The 1.28 development releases made a change which causes a generic
  9. error to be reported when an ODBC call fails but an error message
  10. is not retrieved from the ODBC Driver. It appears this has caught
  11. out a few ODBC drivers - notably freeTDS and Firebird. You now may
  12. see errors that were missed before e.g., DBIx::Class's tests for
  13. Firebird now errors test 21 "outer txn rolled back" (and others)
  14. because SQLRowCount returns an error after "ROLLBACK TO SAVEPOINT
  15. savepoint_0"; before this error was missed.
  16. =head2 Changes in DBD::ODBC 1.28_5 March 6, 2011
  17. [BUG FIXES]
  18. * rt_59621.t had wrong skip count
  19. * Fixed missing SQL_MAX_TABLE_NAME_LEN definition from test.
  20. * Fixed problem with some drivers which batch "insert;select" where
  21. SQLMoreResults is not required and an extra describe is done.
  22. * Fixed "select 1" in 02simple.t for Firebird ODBC Driver.
  23. * disconnect call added to 70execute_array.t was in the wrong place.
  24. * In non-unicode mode we bind strings as SQL_CHAR but the driver may
  25. have described them as SQL_WCHAR and we were not doing ChopBlanks
  26. processing in that case.
  27. [REQUIREMENTS]
  28. * Now needs Test::Simple 0.90.
  29. [OTHER]
  30. * Added dml_counts.pl example
  31. * worked around a problem in freeTDS in the 20SqlServer.t test
  32. provided by Ralph Doncaster.
  33. * Changed test rt_62033.t to try and make it work with freeTDS - I
  34. failed. It now skips attempts to fetch when the insert fails.
  35. * Worked around problem in Firebird ODBC driver which reports
  36. timestamps have a display size of 24 characters but then can
  37. return 29 which could lead to data truncation errors.
  38. See http://tracker.firebirdsql.org/browse/ODBC-112
  39. * Worked around problem in Firebird ODBC driver which reports
  40. VARCHARs have a maximum length of 32765 but in fact it is 4000.
  41. See http://tracker.firebirdsql.org/browse/ODBC-111
  42. * Improvements in tracing to take account of DBI's neatsvpv lops 5
  43. characters off maxsize on a string.
  44. =head2 Changes in DBD::ODBC 1.28_4 February 24, 2011
  45. [BUG FIXES]
  46. * Fixed compilation problems with DBIf_TRACE_TXN
  47. * Added missing disconnect call to 70execute_array.t
  48. =head2 Changes in DBD::ODBC 1.28_3 February 22, 2011
  49. [BUG FIXES]
  50. * Fixed MANIFEST in 1.28_2 which named 2 files incorrectly.
  51. * Fixed use of PREREQ_PRINT in versions of ExtUtils::MakeMaker which
  52. don't support it.
  53. * Fixed a check on LD_LIBRARY_PATH for unixODBC which could report
  54. you've not set LD_LIBRARY_PATH correctly.
  55. [ENHANCEMENTS]
  56. * Added Perl and ExtUtils::MakeMaker version output to build process.
  57. * Added support for DBI's new trace flags ENC, CON, TXN and
  58. DBD. From DBI 1.617 you should be able to use: DBI_TRACE=DBD to
  59. ONLY get DBD::ODBC tracing without DBI tracing ENC and CON DBI
  60. flags are synonymous with DBD::ODBC's odbcconnection and
  61. odbcunicode trace flags which you can still use for now.
  62. [OTHER]
  63. * From now on I'm changing the way the Changes file is written as
  64. per article at
  65. http://blog.urth.org/2011/01/changes-file-how-and-how-not-to.html
  66. * Some broken drivers (freeTDS in this case) can return SQL_ERROR
  67. from an ODBC API function and then SQLError does not return
  68. error details. In this case set a generic error saying an error
  69. occurred but we could not retrieve it.
  70. * Added FAQ entry on MS Access and text columns limited to 255 chrs.
  71. * Added 70execute_array.t test.
  72. =head2 Changes in DBD::ODBC 1.28_2 January 24, 2011
  73. Added -x argument to Makefile.PL saying you prefer unixODBC over
  74. iODBC driver managers as a) we need to look for iODBC first on some
  75. platforms to detect iODBC and b) some platforms (Debian/Ubuntu)
  76. people have both binary packages installed but only unixODBC dev
  77. package.
  78. Patch from Rafael Kitover (Caelum) for better Cygwin handling.
  79. Minor change to data sources test to cope with someone having no
  80. data sources and using a DSN-less connection for testing.
  81. Fixed MARS test when a DSN-less connection used for testing - thanks
  82. to Rafael Kitover (Caelum) for spotting this.
  83. pod patch for "CPAN Testers Reporting" to point at cpan testers wiki
  84. from Rafael Kitover (Caelum).
  85. Fixed some broken links in the FAQ.
  86. Add a multiple active statement document link to random links and
  87. the FAQ entry.
  88. A call to SQLNumResultCols was not checked to test it succeeded.
  89. Not seen anyone run into this as yet.
  90. =head2 Changes in DBD::ODBC 1.28_1 December 29, 2010
  91. Rewrote documentation on odbc_SQL_ROWSET_SIZE and added loads of
  92. notes so I don't have to go through a huge irc conversation with
  93. ribasushi again.
  94. Workaround bug in DBI (prior to 1.616) which mistakenly issues a
  95. FETCH on any attribute passed to the connect method and sometimes
  96. driver managers error on SQL_ROWSET_SIZE in SQLGetConnectAttr.
  97. ChopBlanks was not working on UCS-2 encoded data written into bound
  98. columns and was also sometimes reading off the end of the bound
  99. array.
  100. Minor FAQ changes:
  101. Added an additional way to read MS Access dbs from Unix
  102. Clarified versions for MARS_Connection
  103. updates to cancel_big_fetch.pl
  104. Updated TO_DO with more stuff to do
  105. Improved tracing output
  106. Tidied up some of the examples
  107. =head2 Changes in DBD::ODBC 1.27 December 29, 2010
  108. Official release of the 1.26 development releases.
  109. =head2 Changes in DBD::ODBC 1.26_4 December 14, 2010
  110. Fixed bug highlighted by investigation into rt 62033 where the
  111. active flag was sometimes not set on the statement after
  112. SQLMoreResults indicates a result-set exists.
  113. Fix rt 63550 reported by John Corcoran where if a do method call
  114. fails the SQL C<Statement> is not available in an error handler as
  115. we never created a DBI statement in the first place. Added a note
  116. to "do" deviations pod.
  117. Minor fix to head at wrong level in the pod.
  118. Fix a possible snprintf buffer overflow in GetTypeInfo when
  119. the type is specified and it is negative.
  120. =head2 Changes in DBD::ODBC 1.26_3 November 18, 2010
  121. Fixed rt 63108. The change to column binding in 1.24_2 was not
  122. complete and causes bound columns to be rebound on each execute
  123. wasting time and leaking memory. Found, diagnosed and proposed fix
  124. by Steve Bentley.
  125. =head2 Changes in DBD::ODBC 1.26_2 November 9, 2010
  126. Fixed bug found by frew where an snprintf can overflow when binding
  127. a lot of parameters.
  128. =head2 Changes in DBD::ODBC 1.26_1 October 24, 2010
  129. There are over 200 block changes in the source code for this release
  130. from the previous one (see below). If you are using DBD::ODBC in
  131. production you should not upgrade without testing this release first
  132. as it introduces a lot of internal changes. DBD::ODBC has now gone
  133. entirely ODBC 3 and relies on an ODBC Driver Manager to map calls
  134. to ODBC 2.0 drivers (why are you still using ODBC 2.0 drivers?).
  135. From now on DBD::ODBC needs to be linked with an ODBC Driver Manager
  136. and I recommend unixODBC on UNIX and the MS ODBC Driver Manager
  137. on Windows. There are really good reasons for this but mainly it
  138. is because an ODBC Driver Manager will map ODBC 2.0 calls to an
  139. ODBC 3.0 driver and vice versa and handle UNICODE transparently.
  140. Bumped Test::Simple requirement up to 0.90 so we can use done_testing
  141. and note.
  142. Bump Perl requirement to 5.8 as per DBI.
  143. Workaround a bug in mdbtools which fails to set the out connection
  144. string in a SQLDriverConnect call. This can lead to:
  145. Fixed panic: sv_setpvn called with negative strlen at
  146. blib/lib/DBD/ODBC.pm line 107.
  147. Added rt_61370.t for rt 61370.
  148. Removed last remaining sprintf calls and replaced with snprintf.
  149. Changed the point at which DBD::ODBC switches from VARCHAR to
  150. LONGVARCHAR or WVARCHAR to WLONGVARCHAR when SQLDesribeParam fails. It
  151. was 4000 and is now 2000 for unicode builds. Works around a daft issue
  152. in the MS SQL Server driver which will not allow 'x' x 2001 converted to
  153. wide characters to be inserted into a varchar(8000).
  154. Minor change to Makefile.PL to print out found libs for iODBC and
  155. unixODBC.
  156. Added some FAQs for problems with iODBC and a recent bug in DBI.
  157. Added FAQ on my_snprintf problem.
  158. Fixed some pod errors in FAQ document.
  159. Fixed warning on 64 bit Strawberry Perl when compiling dbdimp.c for
  160. cast from ptr to UDWORD.
  161. Moved to_do items from Changes to TO_DO.
  162. Reformatted this file to save Jens work.
  163. Changed calls to SQLTransact (ODBC 2.0) to SQLEndTran (ODBC 3.0).
  164. There really shouldn't be any ODBC 2.0 drivers still around but even
  165. if there are, the ODBC driver manager should do the mapping for us.
  166. Changed calls to SQLGetConnectOption/SQLSetConnectOption to
  167. to SQLGetConnectAttr/SQLSetConnectAttr for ODBC 3.0.
  168. Changed calls to SQLColAttributes (ODBC 2.0) to SQLColAttribute
  169. (ODBC 3.0).
  170. Bumped requirement on DBI to 1.609 because that is the first version
  171. to contain a dbipport.h which defined my_snprintf - see
  172. https://rt.cpan.org/Public/Bug/Display.html?id=62346 and
  173. http://www.nntp.perl.org/group/perl.dbi.dev/2010/10/msg6335.html
  174. Various small changes to dbdimp.c which should have no effect other
  175. than to make it leaner:
  176. Removed all dTHR occurrences from dbdimp.c as it is a NOOP since 5.8
  177. and we need 5.8 at least.
  178. Removed dbd_param_err as it was not used
  179. Removed odbc_get_query_timeout as it was never compiled
  180. Removed eod field from statement as it was never used
  181. Removed a load of commented out code
  182. Replaced some SvPV calls with SvPV_nolen when we didn't used the
  183. length
  184. Removed some silly code from dbd_db_execdirect which attempted to
  185. return -3 - don't think it could ever get run.
  186. Minor tracing output tidy up
  187. Removed dbd_caution as it was no used
  188. Localised more variable declarations
  189. =head2 Changes in DBD::ODBC 1.25 September 22, 2010
  190. Official release of 1.25 combining all the changes in the 1.24_x
  191. development releases.
  192. =head2 Changes in DBD::ODBC 1.24_6 September 16, 2010
  193. rt 61370 - default XML type parameters in SQL Server to SQL_WCHAR so
  194. they accept unicode strings.
  195. =head2 Changes in DBD::ODBC 1.24_5 September 15, 2010
  196. Fixed missing SvSETMAGIC on a bound scalar which was causing length() to
  197. return the wrong result - see http://www.perlmonks.org/?node_id=860211
  198. and a big thank you to Perl Monks and in particular ikegami.
  199. Changed bind_col so it actually pays attention to the TYPE attribute as
  200. you could not override the bind type of a bound column before.
  201. =head2 Changes in DBD::ODBC 1.24_4 September 8, 2010
  202. Left a sv_undef in - thanks smoke testers for finding that.
  203. Change sprintf to snprintf for safety.
  204. =head2 Changes in DBD::ODBC 1.24_3 September 6, 2010
  205. Added note from Robert Freimuth for obtaining the last insert ID in MS
  206. Access.
  207. Changed all &sv_yes/&sv_no occurrances in XS to PL_sv_yes/PL_sv_no as
  208. the originals have now gone from blead Perl.
  209. Minor change to fix missing newline in trace output.
  210. Added a FAQ entry for how "use regional settings" in MS SQL Server
  211. breaks things.
  212. =head2 Changes in DBD::ODBC 1.24_2 July 23, 2010
  213. Fix rt57957 reported by Marc Prewitt. DBD::ODBC was not ignoring named
  214. placeholders and ? inside comments. Comments are deemed as text between
  215. "/*" and "*/" (if not in a literal) and line comments begin with "--".
  216. Added a FAQ on procedures not completing in MS SQL Server. Thanks to
  217. Peter Rabbitson for hitting this problem and reminding me I'd seen it a
  218. couple of times before.
  219. Added a FAQ on equality comparisons with ntext columns.
  220. Added pod for last_insert_id which is not currently supported.
  221. Fix bug where if SQLMoreResults was called and failed it was not
  222. reported.
  223. Removed some unused fields from the fbh structure which should save a
  224. little memory for each column in a result-set.
  225. Started adding support for DBI's DiscardString and StrictlyTyped but not
  226. complete yet so don't use them yet.
  227. Added experimental odbc_lob_read method - see pod. Thanks to tye and
  228. ikegami on perlmonks for pointing out some problems with my initial
  229. implementation.
  230. Moved the binding of columns to the first call to fetch instead of after
  231. execute is called as it prevents bind_col overrriding the type used for
  232. binding and I needed it to support odbc_lob_read. This may have
  233. undesired affects so any testing of this release would be appreciated.
  234. Added bind_col method so DBD::ODBC can support attributes on a bind_col
  235. call.
  236. Removed support for DBI's blob_read - it was totally flawed and did not
  237. work at all. May replace in the future.
  238. Added support for MS SQL Server XML type (SQL type -152). See rt 59621.
  239. Added note on do method implementation in DBD::ODBC and how some may
  240. consider it to deviate from the DBI specification.
  241. =head2 Changes in DBD::ODBC 1.24_1 May 27, 2010
  242. Corrected pod and private attributes for the odbc_SQL_DRIVER_ODBC_VER
  243. attribute which was documented as SQL_DRIVER_ODBC_VER.
  244. Added FAQ on pauses on statement destruction when all the result-set has
  245. not been retrieved (mostly freeTDS and MS SQL Server ODBC Driver).
  246. Fixed bug introduced in 1.24 where if you are using MS SQL Server, and
  247. you are preparing, binding placeholders and re-executing multiple times
  248. you may get a "Invalid character value for cast specification"
  249. error. Thanks to anonymous for spotting this and producing a standalone
  250. example of the problem that made it so much easier to find.
  251. =head2 Changes in DBD::ODBC 1.24 May 14, 2010
  252. Minor change in Makefile.PL to only use NO_META if ExtUtils::MakeMaker
  253. is at least at version 6.10. Reported by Chunmei Wu.
  254. Minor change to test rt_50852 which had wrong skip count.
  255. =head2 Changes in DBD::ODBC 1.23_5 May 6, 2010
  256. Added advice from Jan Dubois (ActiveState) on building DBD::ODBC for
  257. ActivePerl (see README.windows).
  258. rt56692. Fix spelling mistake in DBD::ODBC pod - thanks to Ansgar
  259. Burchardt.
  260. Added a 7th way to help documentation - become a tester.
  261. Hopefully fixed problems building on windows 32 bit platforms that have
  262. old sql header files not mentioning SQLLEN/SQLULEN.
  263. =head2 Changes in DBD::ODBC 1.23_4 April 13, 2010
  264. Added more FAQs.
  265. Small optimization to remove calls to SQLError when tracing is not
  266. turned on. This was a bug. We only need to call SQLError when SQLExecute
  267. succeeds if there is an error handler or if tracing is enabled. The test
  268. was for tracing disabled!
  269. Large experimental change primarily affecting MS SQL Server users but it
  270. does impact on other drivers too. Firstly, for MS SQL Server users we no
  271. longer SQLFreeStmt(SQL_RESET_PARAMS) and rebind bound parameters as it
  272. is causing the MS SQL Server ODBC driver to re-prepare the SQL.
  273. Secondly (for all drivers) we no longer call SQLBindParameter again IF
  274. all the arguments to it are the same as the previous call. If you find
  275. something not working you better let me know as this is such a speed up
  276. I'm going to go with this unless anyone complains.
  277. Minor change to avoid a double call to SQLGetInfo for SQL_DBMS_NAME
  278. immediately after connection.
  279. Small change for rt 55736 (reported by Matthew Kidd) to not assume a
  280. parameter is varXXX(max) if SQLDescribeParam failed in the Microsoft
  281. Native Client driver.
  282. =head2 Changes in DBD::ODBC 1.23_3 March 24, 2010
  283. Minor changes to Makefile.PL and dbdimp.c to remove some compiler
  284. warnings.
  285. Fix some calls to SQLMoreResults which were not passing informational
  286. messages on to DBI's set_err. As you could not see all the informational
  287. messages from procedures, only the first.
  288. Fix minor issue in 02simple test which printed the Perl subversion
  289. before the version.
  290. Changes to 20SqlServer.t to fix a few typos and make table names
  291. consistent wrt to case - (as someone had turned on case-sensitivity in
  292. SQL Server) Similar changes in rt_38977.t and rt_50852.t
  293. =head2 Changes in DBD::ODBC 1.23_2 January 26, 2010
  294. Fixed bug in Makefile.PL which could fail to find unixODBC/iODBC header
  295. files but not report it as a problem. Thanks to Thomas J. Dillman and
  296. his smoker for finding this.
  297. Fixed some compiler warnings in dbdimp.c output by latest gcc wrt to
  298. format specifiers in calls to PerlIO_printf.
  299. Added the odbc_force_bind_type attribute to help sort out problems with
  300. ODBC Drivers which support SQLDescribeParam but describe the parameters
  301. incorrectly (see rt 50852). Test case also added as rt_50852.t.
  302. =head2 Changes in DBD::ODBC 1.23_1 October 21, 2009
  303. makefile.PL changes:
  304. some formatting changes to output warn if unixodbc headers are not
  305. found that the unixodbc-dev package is not installed use $arext
  306. instead of "a"
  307. pattern match for pulling libodbc.* changed
  308. warn if DBI_DSN etc not defined
  309. change odbc_config output for stderr to /dev/null
  310. missing / on /usr/local wheb finding find_dm_hdr_files()
  311. New FAQ entries from Oystein Torget for bind parameter bugs in SQL
  312. Server.
  313. rt_46597.rt - update on wrong table
  314. Copied dbivport.h from the latest DBI distribution into DBD::ODBC.
  315. Added if_you_are_taking_over_this_code.txt.
  316. Add latest Devel::PPPort ppport.h to DBD::ODBC and followed all
  317. recommendations for changes to dbdimp.c.
  318. Added change to Makefile.PL provided by Shawn Zong to make
  319. Windows/Cygwin work again.
  320. Minor change to Makefile.PL to output env vars to help in debugging
  321. peoples build failures.
  322. Added odbc_utf8_on attribute to dbh and sth handles to mark all strings
  323. coming from the database as utf8. This is for Aster (based on
  324. PostgreSQL) which returns all strings as UTF-8 encoded unicode. Thanks
  325. to Noel Burton-Krahn.
  326. =head2 Changes in DBD::ODBC 1.23 September 11, 2009
  327. Only a readme change and version bumped to 1.23. This is a full release
  328. of all the 1.22_x development releases.
  329. =head2 Changes in DBD::ODBC 1.22_3 August 19, 2009
  330. Fix skip count in rt_38977.t and typo in ok call.
  331. Workaround a bug in unixODBC 2.2.11 which can write off the end of the
  332. string buffer passed to SQLColAttributes.
  333. Fix skip count in rt_null_nvarchar.t test for non SQL Server drivers.
  334. Fix test in 02simple.t which reported a fail if you have no ODBC
  335. datasources.
  336. In 99_yaml.t pick up the yaml spec version from the meta file instead of
  337. specifying it.
  338. Change calls to SQLPrepare which passed in the string lenth of the SQL
  339. to use SQL_NTS because a) they are null terminated and more importantly
  340. b) unixODBC contains a bug in versions up to 2.2.16 which can overwrite
  341. the stack by 1 byte if the string length is specified and not built with
  342. iconv support and converting the SQL from ASCII to Unicode.
  343. Fixed bug in ping method reported by Lee Anne Lester where it dies if
  344. used after the connection is closed.
  345. A great deal of changes to Makefile.PL to improve the automatic
  346. detection and configuration for ODBC driver managers - especially on
  347. 64bit platforms. See rt47650 from Marten Lehmann which started it all
  348. off.
  349. Add changes from Chris Clark for detecting IngresCLI.
  350. Fix for rt 48304. If you are using a Microsoft SQL Server database and
  351. nvarchar(max) you could not insert values between 4001 and 8000
  352. (inclusive) in size. A test was added to the existing rt_38977.t test.
  353. Thanks to Michael Thomas for spotting this.
  354. Added FAQ on UTF-8 encoding and IBM iSeries ODBC driver.
  355. Add support for not passing usernames and passwords in call to connect.
  356. Previously DBD::ODBC would set an unspecified username/password to '' in
  357. ODBC.pm before calling one of the login_xxx functions. This allows the
  358. driver to pull the username/password from elsewhere e.g., like the
  359. odbc.ini file.
  360. =head2 Changes in DBD::ODBC 1.22_1 June 16, 2009
  361. Applied a slightly modified version of patch from Jens Rehsack to
  362. improve support for finding the iODBC driver manager.
  363. A UNICODE enabled DBD::ODBC (the default on Windows) did not handle
  364. UNICODE usernames and passwords in the connect call properly.
  365. Updated "Attribution" in ODBC.pm.
  366. Unicode support is no longer experimental hence warning and prompt
  367. removed from the Makefile.PL.
  368. old_ping method removed.
  369. Fixed bug in 02simple.t test which is supposed to check you have at
  370. least one data source defined. Unfortunately, it was checking you had
  371. more than 1 data source defined.
  372. rt_null_varchar had wrong skip count meaning non-sql-server drivers or
  373. sql server drivers too old skipped 2 tests more than were planned.
  374. =head2 Changes in DBD::ODBC 1.22 June 10, 2009
  375. Fixed bug which led to "Use of uninitialized value in subroutine entry"
  376. warnings when writing a NULL into a NVARCHAR with a unicode-enabled
  377. DBD::ODBC. Thanks to Jirka Novak and Pavel Richter who found, reported
  378. and patched a fix.
  379. Fixed serious bug in unicode_helper.c for utf16_len which I'm ashamed
  380. to say was using an unsigned short to return the length. This meant you
  381. could never have UTF16 strings of more than ~64K without risking
  382. serious problems. The DBD::ODBC test code actually got a
  383. *** glibc detected *** /usr/bin/perl: double free or corruption
  384. (out): 0x406dd008 ***
  385. If you use a UNICODE enabled DBD::ODBC (the default on Windows) and
  386. unicode strings larger than 64K you should definitely upgrade now.
  387. =head2 Changes in DBD::ODBC 1.21_1 June 2, 2009
  388. Fixed bug referred to in rt 46597 reported by taioba and identified by
  389. Tim Bunce. In Calls to bind_param for a given statement handle if you
  390. specify a SQL type to bind as, this should be "sticky" for that
  391. parameter. That means if you do:
  392. $sth->bind_param(1, $param, DBI::SQL_LONGVARCHAR)
  393. and follow it up with execute calls that also specify the parameter:
  394. $sth->execute("a param");
  395. then the parameter should stick with the SQL_LONGVARCHAR type and not
  396. revert to the default parameter type. The DBI docs (from 1.609) make it
  397. clear the parameter type is sticky for the duration of the statement but
  398. some DBDs allow the parameter to be rebound with a different type -
  399. DBD::ODBC is one of those drivers.
  400. =head2 Changes in DBD::ODBC 1.21 April 27, 2009
  401. Change 02simple test to output Perl, DBI and DBD::ODBC versions.
  402. Fixed bug where if ODBC driver supports SQLDescribeParam and it succeeds
  403. for a parameterised query but you override the parameter type, DBD::ODBC
  404. was still using the size returned by SQLDescribeParam. Thanks to Brian
  405. Becker for finding, diagnosing and fixing this issue.
  406. Added FAQ entry about SQL Server and calling procedures with named
  407. parameters out of order.
  408. Added test_results.txt containing some supplied make test results.
  409. =head2 Changes in DBD::ODBC 1.20 April 20, 2009
  410. Fix bug in handling of SQL_WLONGVARCHAR when not built with unicode
  411. support. The column was not identified as a long column and hence the
  412. size of the column was not restricted to LongReadLen. Can cause
  413. DBD::ODBC to attempt to allocate a huge amount of memory.
  414. Minor changes to Makefile.PL to help diagnose how it decided which
  415. driver manager to use and where it was found.
  416. Offer suggestion to debian-based systems when some of unixODBC is found
  417. (the bin part) but the development part is missing.
  418. In 20SqlServer.t attempt to drop any procedures we created if they still
  419. exist at the end of the test. Reported by Michael Higgins.
  420. In 12blob.t separate code to delete test table into sub and call at
  421. being and end, handle failures from prepare there were two ENDs.
  422. In ODBCTEST.pm when no acceptable test column type is found output all
  423. the found types and BAIL_OUT the entire test.
  424. Skip rt_39841.t unless actually using the SQL Server ODBC driver or
  425. native client.
  426. Handle drivers which return 0 for SQL_MAX_COLUMN_NAME_LEN.
  427. Double the buffer size used for column names if built with unicode.
  428. =head2 Changes in DBD::ODBC 1.19 April 2, 2009
  429. Some minor diagnostic output during tests when running against freeTDS
  430. to show we know of issues in freeTDS.
  431. Fixed issue in 20SqlServer.t where the connection string got set with
  432. two consecutive semi-colons. Most drivers don't mind this but freeTDS
  433. ignores everything after that point in the connection string.
  434. Quieten some delete table output during tests.
  435. Handle connect failures in 20SqlServer.t in the multiple active
  436. statement tests.
  437. In 02simple.t cope with ODBC drivers or databases that do not need a
  438. username or password (MS Access).
  439. In 20SqlServer.t fix skip count and an erroneous assignment for
  440. driver_name.
  441. Change some if tests to Test::More->is tests in 02simple.t.
  442. Fix "invalid precision" error during tests with the new ACEODBC.DLL MS
  443. Access driver. Same workaround applied for the old MS Access driver
  444. (ODBCJT32.DLL) some time ago.
  445. Fix out of memory error during tests against the new MS Access driver
  446. (ACEODBC.DLL). The problem appears to be that the new Access driver
  447. reports ridiculously large parameter sizes for "select ?" queries and
  448. there are some of these in the unicode round trip test.
  449. Fixed minor typo in Makefile.PL - diagnostic message mentioned "ODBC
  450. HOME" instead of ODBCHOME.
  451. 12blob.t test somehow got lost from MANIFEST - replaced. Also changed
  452. algorithm to get a long char type column as some MS Access drivers only
  453. show SQL_WLONGVARCHAR type in unicode.
  454. Added diagnostic output to 02simple.t to show the state of
  455. odbc_has_unicode.
  456. =head2 Changes in DBD::ODBC 1.18_4 March 13, 2009
  457. A mistake in the MANIFEST lead to the rt_43384.t test being omitted.
  458. Brian Becker reported the tables PERL_DBD_39897 and PERL_DBD_TEST are
  459. left behind after testing. I've fixed the former but not the latter yet.
  460. Yet another variation on the changes for rt 43384. If the parameter is
  461. bound specifically as SQL_VARCHAR, you got invalid precision
  462. error. Thanks to Øystein Torget for finding this and helping me verify
  463. the fix.
  464. If you attempt to insert large amounts of data into MS Access (which
  465. does not have SQLDescribeParam) you can get an invalid precision error
  466. which can be worked around by setting the bind type to
  467. SQL_LONGVARCHAR. This version does that for you.
  468. 08bind2.t had a wrong skip count.
  469. 12blob.t had strict commented out and GetTypeInfo was not quoted. Also
  470. introduced a skip if the execute fails as it just leads to more obvious
  471. failures.
  472. In dbdimp.c/rebind_ph there was a specific workaround for SQL Server
  473. which was not done after testing if we are using SQL Server - this was
  474. breaking tests to MS Access.
  475. =head2 Changes in DBD::ODBC 1.18_2 March 9, 2009
  476. Added yet another workaround for the SQL Server Native Client driver
  477. version 2007.100.1600.22 and 2005.90.1399.00 (driver version 09.00.1399)
  478. which leads to HY104, "Invalid precision value" in the rt_39841.t test.
  479. =head2 Changes in DBD::ODBC 1.18_1 March 6, 2009
  480. Fixed bug reported by Toni Salomäki leading to a describe failed error
  481. when calling procedures with no results. Test cases added to
  482. 20SqlServer.t.
  483. Fixed bug rt 43384 reported by Øystein Torget where you cannot insert
  484. more than 127 characters into a Microsoft Access text(255) column when
  485. DBD::ODBC is built in unicode mode.
  486. =head2 Changes in DBD::ODBC 1.18 January 16, 2009
  487. Major release of all the 1.17 development releases below.
  488. =head2 Changes in DBD::ODBC 1.17_3 December 19, 2008
  489. Reinstated the answer in the FAQ for "Why do I get invalid value for
  490. cast specification" which had got lost - thanks to EvanCarroll in
  491. rt41663.
  492. rt 41713. Applied patch from JHF Remmelzwaal to handle ODBC drivers
  493. which do not support SQL_COLUMN_DISPLAY_SIZE and SQL_COLUMN_LENGTH
  494. attributes in the SQLColAttributes calls after SQLTables and
  495. SQLColumns. Specifically, the driver he was using was the "Infor
  496. Integration ODBC driver".
  497. Added notes from JHF Remmelzwaal on resolving some problems he came
  498. across building DBD::ODBC on Windows with Visual Studio 6.0 and SDK Feb
  499. 2003.
  500. New odbc_column_display_size attribute for when drivers does not return
  501. a display size.
  502. Loads of tracing changes to make it easier for me to debug problems.
  503. Fixed bug in tracing of dbd_execute when parameter is char but undef
  504. which was leading to an access violation on Windows when tracing
  505. enabled.
  506. Minor changes to diagnostic output in some rt tests.
  507. One of the rt tests was not skipping the correct number of tests if the
  508. driver was not SQL Server.
  509. =head2 Changes in DBD::ODBC 1.17_2 November 17, 2008
  510. Changed ParamTypes attribute to be as specification i.e.,
  511. {
  512. parameter_1 => {TYPE => sql_type}
  513. parameter_2 => {TYPE => sql_type}
  514. ...
  515. }
  516. and changed the tests in 07bind.t to reflect this.
  517. A few minor perlcritic changes to ODBC.pm.
  518. Added 99_yaml.t test to check META.yml.
  519. Added patch from Spicy Jack to workaround problems with Strawberry Perl
  520. setting INC on the command line when running Makefile.PL.
  521. =head2 Changes in DBD::ODBC 1.17_1 October 10, 2008
  522. Missing newline from end of META.yml upsets cpan
  523. Add code to Makefile.PL to spot command line containing INC, outline
  524. problem and resolution and not generate Makefile to avoid cpan-testers
  525. failures.
  526. Loads of pod formatting changes including a section in the wrong place
  527. New kwalitee test
  528. Fix rt 39841. Bug in SQL Server ODBC driver which describes parameters
  529. by rearranging your SQL to do a select on the columns matching the
  530. parameters. Sometimes it gets this wrong and ends up describing the
  531. wrong column. This can lead to a varchar(10) being described with a
  532. column-size less than 10 and hence you get data truncation on execute.
  533. Added a test case for rt 39841.
  534. Fix rt 39897. 1.17 added support for varchar(max) in SQL Server but it
  535. broke support for SQL_VARCHAR columns in that they had LongReadLen and
  536. LongTruncOk applied to them. This means that in 1.16 you could retrieve
  537. a SQL_VARCHAR column without worrying about how long it was but in 1.17
  538. if the same column was greater than 80 characters then you would get a
  539. truncated error. The only way the around this was to set LongTruncOk or
  540. LongReadLen.
  541. Added a test case for rt 39897.
  542. =head2 Changes in DBD::ODBC 1.17 September 22, 2008
  543. In the absence of any bug reports since 1.16_4 this is the official 1.17
  544. release. See below for changes since 1.16.
  545. Minor pod changes.
  546. Added support for ParamTypes (see DBI spec) and notes in DBD::ODBC pod.
  547. =head2 Changes in DBD::ODBC 1.16_4 September 12, 2008
  548. Small change to Makefile.PL to work around problem in darwin 8 with
  549. iODBC which leads to "Symbol not found: _SQLGetPrivateProfileString"
  550. errors.
  551. Added new [n]varXXX(max) column type tests to 20SqlServer.t.
  552. Fixed support for SQL_WCHAR and SQL_WVARCHAR support in non-unicode
  553. build. These types had ended up only being included for unicode builds.
  554. More changes to ODBC pod to 1) encourage people to use CPAN::Reporter,
  555. 2) rework contributing section, 3) mention DBIx::Log4perl 4) add a BUGS
  556. section 5) add a "ODBC Support in ODBC Drivers" section etc.
  557. Changed default fallback parameter bind type to SQL_WVARCHAR for unicode
  558. builds. This affects ODBC drivers which don't have
  559. SQLDescribeParam. Problem reported by Vasili Galka with MS Access when
  560. reading unicode data from one table and inserting it into another table.
  561. The read data was unicode but it was inserted as SQL_CHARs because
  562. SQLDescribeParam does not exist in MS Access so we fallback to either a
  563. default bind type (which was SQL_VARCHAR) or whatever was specified in
  564. the bind_param call.
  565. Fixed bug in 20SqlServer.t when DBI_DSN is defined including "DSN=".
  566. =head2 Changes in DBD::ODBC 1.16_3 September 3, 2008
  567. Changed Makefile.PL to add "-framework CoreFoundation" to linker line on
  568. OSX/darwin.
  569. Disallow building with iODBC if it is a unicode build.
  570. More tracing for odbcconnect flag.
  571. Fix bug in out connection string handling that attempted to use an out
  572. connection string when SQLDriverConnect[W] fails.
  573. Fixed yet more test count problems due to Test::NoWarnings not being
  574. installed.
  575. Skip private_attribute_info tests if DBI < 1.54
  576. About a 30% rewrite of bound parameter code which started with an
  577. attempt to support the new VARBINARY(MAX) and VARCHAR(MAX) columns in
  578. SQL Server when the parameter length is > 400K in size (see elsewhere in
  579. this Changelog). This is a seriously big change to DBD::ODBC to attempt
  580. to be a bit more clever in its handling of drivers which either do not
  581. support SQLDescribeParam or do support SQLDescribeParam but cannot
  582. describe all parameters e.g., MS SQL Server ODBC driver cannot describe
  583. "select ?, LEN(?)". If you specify the bound parameter type in your
  584. calls to bind_param and run them to an ODBC driver which supports
  585. SQLDescribeParam you may want to check carefully and probably remove the
  586. parameter type from the bind_param method call.
  587. Added rt_38977.t test to test suite to test varchar(max) and
  588. varbinary(max) columns in SQL Server.
  589. Moved most of README.unicode to ODBC.pm pod.
  590. Added workaround for problem with the Microsoft SQL Server driver when
  591. attempting to insert more than 400K into a varbinary(max) or
  592. varchar(max) column. Thanks to Julian Lishev for finding the problem and
  593. identifying 2 possible solutions.
  594. =head2 Changes in DBD::ODBC 1.16_2 September 2, 2008
  595. Removed szDummyBuffer field from imp_fbh_st and code in dbd_describe
  596. which clears it. It was never used so this was a waste of time.
  597. Changed the remaining calls to SQLAllocEnv, SQLAllocConnect and
  598. SQLAllocStmt and their respective free calls to the ODBC 3.0
  599. SQLAllocHandle and SQLFreeHandle equivalents.
  600. Rewrote ColAttributes code to understand string and numeric attributes
  601. rather than trying to guess by what the driver returns. If you see any
  602. change in behaviour in ColAttributes calls you'll have to let me know as
  603. there were a number of undocumented workarounds for drivers.
  604. Unicode build of DBD::ODBC now supports:
  605. column names
  606. The retrieval of unicode column names
  607. SQL strings
  608. Unicode in prepare strings (but not unicode parameter names) e.g.,
  609. select unicode_column from unicode_table
  610. is fine but
  611. select * from table where column = :unicode_param_name
  612. is not so stick to ascii parameter names if you use named
  613. parameters.
  614. Unicode SQL strings passed to the do method are supported.
  615. SQL strings passed to DBD::ODBC when the odbc_exec_direct attribute
  616. is set will not be passed as unicode strings - this is a
  617. limitation of the odbc_exec_direct attribute.
  618. connection strings
  619. True unicode connection string support will require a new version of
  620. DBI (post 1.607).
  621. Note that even though unicode connection strings are not
  622. supported currently DBD::ODBC has had to be changed to call
  623. SQLDriverConnectW/SQLConnectW to indicate to the driver manager it's
  624. intention to use some of the ODBC wide APIs. This only affects
  625. DBD::ODBC when built for unicode.
  626. odbcunicode trace flag
  627. There is a new odbcunicode trace flag to enable unicode-specific
  628. tracing.
  629. Skipped 40Unicode.t test if the ODBC driver is Oracle's ODBC as I cannot
  630. make it work.
  631. Changes internally to use sv_utf8_decode (where defined) instead of
  632. setting utf8 flag.
  633. Fix problems in the test when Test::NoWarnings is not installed.
  634. Removed some unused variables that were leading to compiler warnings.
  635. Changed a lot of tracing to use new odbcconnection flag
  636. Changed to use dbd_db_login6_sv if DBI supports it.
  637. Commented out a diag in 20SqlServer.t that was leading to confusion.
  638. Added diag to 20SqlServer.t in mars test to explain why it may fail.
  639. Various pod changes for clarification and to note odbc_err_handler is
  640. deprecated.
  641. Removed odbcdev trace flag - it was not really used.
  642. New odbc_out_connect_string attribute for connections which returns the
  643. ODBC driver out connection string.
  644. =head2 Changes in DBD::ODBC 1.16_1 August 28, 2008
  645. Fixed bug in odbc_cancel which was checking the ACTIVE flag was on
  646. before calling SQLCancel. Non-select statements can also be cancelled so
  647. this was wrong. Thanks to Dean Arnold for spotting.
  648. Minor changes to test 01base to attempt to catch install_driver failing,
  649. report it as a fail and skip other tests.
  650. Fixed bug reported by James K. Lowden with asynchronous mode and
  651. SQLParamData where the code was not expecting SQL_STILL_EXECUTING and
  652. did not handle it
  653. Added odbc_putdata_start attribute to determine when to start using
  654. SQLPutData on lobs.
  655. Fixed bug in lob inserts where decimal_digits was being set to the size
  656. of the bound lob unnecessarily.
  657. Minor change to connect/login code to delete driver-specific attributes
  658. passed to connect so they do not have to be processed again when DBI
  659. calls STORE with them.
  660. New 12blob.t test.
  661. A lot of code tidy up but not expecting any real benefit or detriment
  662. when using DBD::ODBC.
  663. Fixed retrieving [n]varchar(max) columns which were only returning 1
  664. byte - thanks to Fumiaki Yoshimatsu and perl monks for finding it. See
  665. http://markmail.org/message/fiym5r7q22oqlzsf#query:Fumiaki Yoshimatsu
  666. odbc+page:1+mid:fiym5r7q22oqlzsf+state:results
  667. Various minor changes to get the CPANTS kwalitee score up.
  668. fixed pod issues in FAQ.pm
  669. moved mytest dir to examples
  670. added generated_by and requires perl version to META.yml
  671. added pod and pod-coverage tests
  672. removed executable flag from Makefile.PL
  673. added use warnings to some modules and tests
  674. fixed pod errors in ODBC.pm
  675. added AUTHOR and LICENSE section to ODBC.pm
  676. added Test::NoWarnings to tests
  677. Added support for setting the new(ish) DBI ReadOnly attribute on a
  678. connection. See notes in pod.
  679. Changes to test suite to work around problems in Oracle's instant client
  680. 11r1 ODBC driver for Linux (SQLColAttributes problems - see 02simple.t).
  681. New tests in 30Oracle.t for oracle procedures.
  682. =head2 Changes in DBD::ODBC 1.16 May 13, 2008
  683. =head3 Test Changes
  684. Small change to the last test in 10handler.t to cope with the prepare
  685. failing instead of the execute failing - spotted by Andrei Kovalevski
  686. with the ODBCng Postgres driver.
  687. Changed the 20SqlServer.t test to specifically disable MARS for the test
  688. to check multiple active statements and added a new test to check that
  689. when MARS_Connection is enabled multiple active statements are allowed.
  690. Changed the 09multi.t test to use ; as a SQL statement seperator instead
  691. of a newline.
  692. A few minor "use of unitialised" fixes in tests when a test fails.
  693. In 02simple.t Output DBMS_NAME/VER, DRIVER_NAME/VER as useful debugging
  694. aid when cpan testers report a fail.
  695. 2 new tests for odbc_query_timeout added to 03dbatt.t.
  696. Changed 02simple.t test which did not work for Oracle due to a "select
  697. 1" in the test. Test changed to do "select 1 from dual" for Oracle.
  698. New tests for numbered and named placeholders.
  699. =head3 Documentation Changes
  700. Added references to DBD::ODBC ohloh listing and markmail archives.
  701. Added Tracing sections.
  702. Added "Deviations from the DBI specification" section.
  703. Moved the FAQ entries from ODBC.pm to new FAQ document. You can view the
  704. FAQ with perldoc DBD::ODBC::FAQ.
  705. Added provisional README.windows document.
  706. Rewrote pod for odbc_query_timeout.
  707. Added a README.osx.
  708. =head3 Internal Changes
  709. More tracing in dbdimp.c for named parameters.
  710. #ifdeffed out odbc_get_primary_keys in dbdimp.c as it is no longer used.
  711. $h->func($catalog, $schema, $table, 'GetPrimaryKeys') ends up in
  712. dbdimp.c/dbd_st_primary_keys now.
  713. Reformatted dbdimp.c to avoid going over 80 columns.
  714. Tracing changed. Levels reviewed and changed in many cases avoiding
  715. levels 1 and 2 which are reserved for DBI. Now using DBIc_TRACE macro
  716. internally. Also tracing SQL when 'SQL' flag set.
  717. =head3 Build Changes
  718. Changes to Makefile.PL to fix a newly introduced bug with 'tr', remove
  719. easysoft OOB detection and to try and use odbc_config and odbcinst if we
  720. find them to aid automatic configuration. This latter change also adds
  721. "odbc_config --cflags" to the CC line when building DBD::ODBC.
  722. Avoid warning when testing ExtUtils::MakeMaker version and it is a test
  723. release with an underscore in the version.
  724. =head3 Functionality Changes
  725. Added support for parse_trace_flag and parse_trace_flags methods and
  726. defined a DBD::ODBC private flag 'odbcdev' as a test case.
  727. Add support for the 'SQL' trace type. Added private trace type odbcdev
  728. as an experimental start.
  729. Change odbc_query_timeout attribute handling so if it is set to 0 after
  730. having set it to a non-zero value the default of no time out is
  731. restored.
  732. Added support for DBI's statistics_info method.
  733. =head3 Bug Fixes
  734. Fix bug in support for named placeholders leading to error "Can't rebind
  735. placeholder" when there is more than one named placeholder.
  736. Guard against scripts attempting to use a named placeholder more than
  737. once in a single SQL statement.
  738. If you called some methods after disconnecting (e.g., prepare/do and any
  739. of the DBD::ODBC specific methods via "func") then no error was
  740. generated.
  741. Fixed issue with use of true/false as fields names in structure on MAC
  742. OS X 10.5 (Leopard) thanks to Hayden Stainsby.
  743. Remove tracing of bound wide characters as it relies on null-terminated
  744. strings that don't exist.
  745. Fix issue causing a problem with repeatedly executing a stored procedure
  746. which returns no result-set. SQLMoreResults was only called on the first
  747. execute and some drivers (SQL Server) insist a procedure is not finished
  748. until SQLMoreResults returns SQL_NO_DATA.
  749. =head2 Changes in DBD::ODBC 1.15 January 29, 2008
  750. 1.15 final release.
  751. Fixed bug reported by Toni Salomaki where DBD::ODBC may call
  752. SQLNumResultCols after SQLMoreResults returns SQL_NO_DATA. It led to the
  753. error:
  754. Describe failed during DBI::st=HASH(0x19c2048)->FETCH(NUM_OF_FIELDS,0)
  755. when NUM_OF_FIELDS was referenced in the Perl script.
  756. Updated odbc_exec_direct documentation to describe its requirement when
  757. creating temporary objects in SQL Server.
  758. Added FAQ on SQL Server temporary tables.
  759. Fixed bug in dbdimp.c which was using SQL_WCHAR without testing it was
  760. defined - thanks Jergen Dutch.
  761. Fixed use of "our" in UCHelp.pm which fails on older Perls.
  762. Minor changes to 02simple.t and 03dbatt.t to fix diagnostics output and
  763. help debug DBD which does not handle long data properly.
  764. Further changes to Makefile.PL to avoid change in behavior of
  765. ExtUtils::MakeMaker wrt order of execution of PREREQ_PM and CONFIGURE.
  766. Now if DBI::DBD is not installed we just warn and exit 0 to avoid a
  767. cpan-testers failure.
  768. =head2 Changes in DBD::ODBC 1.15_2 November 14, 2007
  769. Fix bug in DBD::ODBC's private function data_sources which was returning
  770. data sources prefixed with "DBI:ODBC" instead of "dbi:ODBC".
  771. If you don't have at least DBI 1.21 it is now a fatal error instead of
  772. just a warning.
  773. DBI->connect changed so informational diagnostics like "Changed database
  774. context to 'master'" from SQL Server are available in
  775. errstr/state. These don't cause DBI->connect to die but you can test
  776. $h->err eq "" after connect and obtain the informational diagnostics
  777. from errstr/state if you want them.
  778. Fixed problem in 41Unicode.t where utf8 was used before testing we had a
  779. recent enough Perl - thank you cpan testers.
  780. Changed "our" back to "my" in Makefile.PL - thank you cpan testers.
  781. Removed all calls to DBIh_EVENT2 in dbdimp.c as it is no longer used
  782. (see posts on dbi-dev).
  783. Changed text output when a driver manager is not found to stop referring
  784. to iodbcsrc which is no longer included with DBD::ODBC.
  785. Changed Makefile.PL to attempt to find unixODBC if -o or ODBCHOME not
  786. specified.
  787. Updated META.yml based on new 1.2 spec.
  788. Changed Makefile.PL so if an ODBC driver manager is not found then we
  789. issue warning and exit cleanly but not generating a Makefile. This
  790. should stop cpan-testers from flagging a fail because they haven't got
  791. an ODBC driver manager.
  792. Changed Makefile.PL so it no longer "use"s DBI/DBI::DBD because this
  793. makes cpan-testers log a fail if DBI is not installed. Changed to put
  794. the DBI::DBD use in the CONFIGURE sub so PREREQ_PM will filter out
  795. machines where DBI is not installed.
  796. Fix a possible typo, used once in 10handler.t.
  797. =head2 Changes in DBD::ODBC 1.15_1 November 6, 2007
  798. Minor changes to 20SqlServer.t test for SQL Server 2008 (Katmai).
  799. Timestamps now return an extra 4 digits of precision (all 0000) and the
  800. driver reported in dbcc messages has a '.' in the version which was not
  801. handled.
  802. New FAQ entry and test code for "Datetime field overflow" problem in
  803. Oracle.
  804. Changed all ODBC code to use new SQLLEN/SQLULEN types where Microsoft's
  805. headers indicate, principally so DBD::ODBC builds and works on
  806. win64. NOTE: you will need an ODBC Driver Manager on UNIX which knows
  807. SQLLEN/SQLULEN types. The unixODBC driver manager uses SQLLEN/SQLULEN in
  808. versions from at least 2.2.12. Thanks to Nelson Oliveira for finding,
  809. patching and testing this and then fixing problems with bound parameters
  810. on 64 bit Windows.
  811. Added private_attribute_info method DBI introduced (see DBI docs) and
  812. test cases to 02simple.t.
  813. Fairly major changes to dbd_describe in dbdimp.c to reduce ODBC calls by
  814. 1 SQLDescribeCol call per column when describing result sets. Instead of
  815. calculating the amount of memory required to hold every column name we
  816. work on the basis that (num_columns + 1) * SQL_MAX_COLUMN_NAME_LEN can
  817. hold all column names. However, to avoid using a large amount of memory
  818. unnecessarily if an ODBC driver supports massive column name lengths the
  819. maximum size per column is restricted to 256.
  820. Changed to avoid using explicit use of DBIc_ERRXXX in favour of newish
  821. (ok, DBD::ODBC is a bit behind the times in this respect)
  822. DBIh_SET_ERR_CHAR. This involved a reworking or the error handling and
  823. although all test cases still pass I cannot guarantee it has no other
  824. effects - please let me know if you spot differences in error messages.
  825. Fixed bug in 20SqlServer test for multiple results that was passing but
  826. for the wrong reason (namely, that the odbc_err_handler was being called
  827. when it should not have been).
  828. Fixed bug in odbc_err_handler that prevented it from being reset so you
  829. don't have an error handler. Looks like the problem was in
  830. dbd_db_STORE_attrib where "if(valuesv == &PL_sv_undef)" was used to
  831. detect undef and I think it should be "if (!SvOK(valuesv))".
  832. Improvements to odbc_err_handler documentation.
  833. Added 10handler.t test cases.
  834. More tests in 02simple.t to check NUM_OF_FIELDS and NAMES_uc.
  835. Bit of a tidy up:
  836. Removed some unused variable declarations from dbdimp.c.
  837. Lots of changes to DBD::ODBC tracing, particularly in dbd_describe, and
  838. dbd_error2 and login6.
  839. Removed a lot of tracing code in comments or #if 0 as it never gets
  840. built.
  841. Changed dual tests on SQL_SUCCESS and SQL_SUCCESS_WITH_INFO to use
  842. SQL_SUCCEEDED.
  843. =head2 Changes in DBD::ODBC 1.14 July 17, 2007
  844. Fix bug reported where ping crashes after disconnect thanks to Steffen
  845. Goeldner.
  846. Fix bug in dbd_bind_ph which leads to the error Can't change param 1
  847. maxlen (51->50) after first bind in the 20SqlServer test. This is caused
  848. by svGROW in Perl 5.8.8 being changed to possibly grow by more than you
  849. asked (e.g. up to the next longword boundary).
  850. Fix problem with binding undef as an output parameter. Reported by
  851. Stephen More with IBM's ODBC driver for iSeries.
  852. Removed comment delimiters in comments in dbdimp.h leading to warnings.
  853. Removed some unused variable declarations leading to warnings.
  854. Removed PerlIO_flush calls as it is believed they are not required.
  855. Add logging for whether SQLDescribeParam is supported.
  856. Fixed use of unitialised variable in dbd_bind_ph where an undef is bound
  857. and tracing is enabled.
  858. Fixed issue with TRACESTATUS change in 20SqlServer.t tests 28, 31, 32
  859. and 33 leading to those tests failing when testing with SQL Server 2005
  860. or Express.
  861. Many compiler warnings fixed - especially for incompatible types.
  862. Add provisional Unicode support - thanks to Alexander Foken. This change
  863. is very experimental (especially on UNIX). Please see ODBC.pm
  864. documentation. Also see README.unicode and README.af. New database
  865. attribute odbc_has_unicode to test if DBD::ODBC was built with UNICODE
  866. support. New tests for Unicode. New requirement for Perl 5.8.1 if
  867. Unicode support required. New -[no]u argument to Makefile.PL. New
  868. warning in Makefile.PL if Unicode support built for UNIX.
  869. Fix use of unitialised var in Makefile.PL.
  870. Fix use of scalar with no effect on Makefile.PL
  871. Added warning to Makefile.PL about building/running with LANG using
  872. UTF8.
  873. Added warning to Makefile.PL about using thread-safe ODBC drivers.
  874. Updated MANIFEST to include more test code from mytest and remove
  875. MANIFEST.SKIP etc.
  876. Removed calls to get ODBC errors when SQLMoreResults returns
  877. SQL_NO_DATA. These are a waste of time since SQL_NO_DATA is expected
  878. and there is no error diagnostic to retrieve.
  879. Changes to test 17 of 02simple.t which got "not ok 17 - Col count
  880. matches correct col count" errors with some Postgres ODBC
  881. drivers. Caused by test expecting column names to come back
  882. uppercase. Fixes by uppercasing returned column names.
  883. Changes to tests in 03batt.t which correctly expects an ODBC 3 dr