20042009 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ODBC Release Notes otp_appnotes nil nil nil notes.xml

This document describes the changes made to the odbc application.

ODBC 2.10.6
Fixed Bugs and Malfunctions

Applied a patch from Andrew Thompson, which fixes some error cases.

Own Id: OTP-8291

Improvements and New Features

The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.

Own Id: OTP-8250

ODBC 2.10.5
Fixed Bugs and Malfunctions

A missing return statement in a non void function has been fixed in odbc. (Thanks to Nico Kruber)

Own Id: OTP-7978

ODBC 2.10.4
Improvements and New Features

param_query now handles the in_or_out parameter correctly.

Own Id: OTP-7720

Changed the internal socket use so that it will become more robust to non-functional ipv6 and fallback on ipv4.

Own Id: OTP-7721

ODBC 2.10.3
Improvements and New Features

Configure update for mac.

Own Id: OTP-7418

Known Bugs and Problems

describe_table/[2,3] on mac gives an empty result

Own Id: OTP-7478

ODBC 2.10.2
Fixed Bugs and Malfunctions

SQLINTEGERs where not retrieved correctly on 64 bit platforms as an SQLINTEGER is defined to be a 32 bit integer and not a true long.

Own Id: OTP-7297

ODBC 2.10.1
Improvements and New Features

Now supports out and input parameters for stored procedures.

Own Id: OTP-7019

ODBC is now prebuilt for SLES10 in the commercial build and parameters to error_logger:error_report/1 has been corrected.

Own Id: OTP-7294

Parametrized queries will now work correctly when using Erlang R12B-2 on Linux (SuSE 10.3), MySQL 5.0.45, myodbc 3.51 and unixODBC 2.2.12. Earlier it could happen that an error was returned even though data was correctly inserted into the database.

Own Id: OTP-7307

Known Bugs and Problems

SQLINTEGERs are not retrieved correctly on 64 bit platforms as an SQLINTEGER seems to be defined to be a 32 bit integer and not a true long.

Own Id: OTP-7297

ODBC 2.10
Improvements and New Features

Enhanced configure to among other things work better when there is a library found but it is not usable e.i. 32 bit library in 64 bit build.

Own Id: OTP-7062

ODBC 2.0.9
Improvements and New Features

The odbc application now has to be explicitly started and stopped e.i. it will not automatically be started as a temporary application as it did before. Although a practical feature when testing things in the shell, it is not desirable that people take advantage of this and not start the odbc application in a correct way in their products. Added functions to the odbc API that calls application:start/stop.

*** POTENTIAL INCOMPATIBILITY ***

Own Id: OTP-6984

Changed Makefile.in so that odbc is not disabled on 64-bits architectures. It was earlier disabled due to that it had never been tested in that environment.

Own Id: OTP-6987

ODBC 2.0.8
Improvements and New Features

Minor Makefile changes.

Own Id: OTP-6689

ODBC 2.0.7
Fixed Bugs and Malfunctions

When using a parameterized query on a windows platform the data was inserted in the table on the sql-server but the connection was lost, this seems to be due to a compiler error that has now been worked around, but further investigation is ongoing to verify that that really was the problem.

Own Id: OTP-5504

param_query/[3,4] could return an unexpected row count for some drivers, in this case a postgresdriver.

Own Id: OTP-6363

ODBC 2.0.6
Fixed Bugs and Malfunctions

pthread header and library mismatch on linux systems (at least some SuSE and Debian) with both NPTL and Linuxthreads libraries installed.

Own Id: OTP-5981

Improvements and New Features

Changed configure to find odbc in /usr/local too

Own Id: OTP-5966

Known Bugs and Problems

When using a parameterized query on a windows platform the data is inserted in the table on the sql-server but for some reason the connection is lost.

Own Id: OTP-5504

ODBC 2.0.5
Fixed Bugs and Malfunctions

Fixed bug, reported error when deleting nonexisting rows, thanks to Laura M. Castro for reporting this.

Own Id: OTP-5759

Known Bugs and Problems

When using a parameterized query on a windows platform the data is inserted in the table on the sql-server but for some reason the connection is lost.

Own Id: OTP-5504

Odbc 2.0.4
Improvements and New Features

/usr was added as a default place for configure to look for the odbc library on unix/linux platforms.

Own Id: OTP-5501

A legacy timer in the c port program was set to infinity. All timeout handling is handled by the erlang code and a extra timeout in the c code will just lead to confusion if it is released.

Own Id: OTP-5502

Known Bugs and Problems

When using a parameterized query on a windows platform the data is inserted in the table on the sql-server but for some reason the connection is lost.

Own Id: OTP-5504

Odbc 2.0.3
Improvements and New Features

odbc now uses configure as all "normal" applications instead of providing special Makefiles for each commercial supported platform. This also makes it easier to build odbc on non supported platforms.

Own Id: OTP-5437

odbc 2.0.2
Fixed Bugs and Malfunctions

When issuing a batch of queries and one of the queries fail the odbc port program crashed. This is no longer the case.

Own Id: OTP-5176

odbc 2.0.1
Improvements and New Features

Added use of the socket option TCP_NODELAY, as in the case of Erlang odbc the Nagel algorithm will never help, but always cause an unnecessary delay.

Own Id: OTP-5100

odbc 2.0
Improvements and New Features

Erlang ODBC now handles batches of queries and can return multiple result sets.

Own Id: OTP-4642 Aux Id: seq7766

The old interface that became deprecated in odbc 1.0 has now been removed.

*** POTENTIAL INCOMPATIBILITY ***

Own Id: OTP-4794

The port program now sends different exit codes to Erlang when it exits due to failure. This instead of sending the same exit code and then trying to write to stderr. Erlang encodes the exit code to a descriptive atom.

Own Id: OTP-4813

Erlang ODBC now supports parameterized queries for the most common ODBC data types.

Own Id: OTP-4821

SQL_NUMERIC and SQL_DECIMAL columns are converted to integer and float values if possible.

*** POTENTIAL INCOMPATIBILITY ***

Own Id: OTP-4826

Result sets are now by default returned as a list of tuples which is the most intuitive and useful mapping. To keep some degree of backwards compatibility you may turn this off to get the old behavior that result sets are returned as lists of lists. However do not use this in new code as it is considered a deprecated feature that eventually will disappear.

*** POTENTIAL INCOMPATIBILITY ***

Own Id: OTP-4850

The odbc implementation now mostly uses sockets to communicate between the c and the erlang process, this is to avoid a lot of problems arising from different odbc-drivers doing strange things that disturbed the port-program communication mechanism.

Own Id: OTP-4875