php-src/ext/pdo_dblib
Chris Kings-Lynne 48b5a1f9b9 Ignore potentially misleading dberr values
FreeTDS had a buggy behavior where it would pass invalid values:
https://sourceforge.net/p/freetds/bugs/59/

The fix for this issue -- bc22b2ef817fb5d102bd758111ff3634b39a1319 on their
repo -- was to always use SYBESMSG for dberr. This makes it so the existing
pdo_dblib code would work as is. But by ignoring the dberr value in this
function, it will behave correctly, even with older versions of FreeTDS.
2016-09-26 17:07:46 -04:00
..
tests Limit size of result set for test query 2016-09-21 16:21:33 -04:00
config.m4 Look for PDO include files in the right folder 2015-02-06 12:06:29 +01:00
config.w32 MFH: Fix --with-pdo-mssql build and add some warnings if header/libs are not found 2009-05-19 10:22:25 +00:00
CREDITS
dblib_driver.c Ignore potentially misleading dberr values 2016-09-26 17:07:46 -04:00
dblib_stmt.c PHP bug 67130: nextRowset should work with unfetched rows 2016-09-21 14:27:23 -04:00
package2.xml set min pdo dep to 1.0.3, which will be the new pecl release 2006-05-02 02:43:11 +00:00
pdo_dblib.c Free error and message strings when cleaning up PDO instances that use pdo_dblib 2016-09-13 16:43:30 -04:00
php_pdo_dblib_int.h Free error and message strings when cleaning up PDO instances that use pdo_dblib 2016-09-13 16:43:30 -04:00
php_pdo_dblib.h Merge branch 'PHP-5.6' into PHP-7.0 2016-01-01 19:48:25 +02:00
README Handle SQLDECIMAL/SQLNUMERIC types, which are used by later TDS versions 2016-09-13 16:32:37 -04:00

This is the unified Sybase-DB style driver for PDO.

This extension register itself as:
	- 'mssql' when built against the Microsoft DBLIB library
	- 'sybase' when built against Sybase ct-lib
	- 'dblib' when built against FreeTDS

The following database products are free for testing:
	- Microsoft SQL Server Express (Windows Only)
	- Sybase Adaptive Server (Windows, Linux, *NIX)
	- Microsoft SQL Server Azure (One Month Trial Cloud Service)

You must set the following environment variables to run the tests:
	- PDO_DBLIB_TEST_DSN  - DSN (e.g., dblib:host=localhost;dbname=test)
	- PDO_DBLIB_TEST_USER - database user
	- PDO_DBLIB_TEST_PASS - database user password

This extension supports multiple versions of the TDS protocol. There are
behavioral differences between versions. When making changes, it's recommended
to test across all supported versions. You can specify a version using a version
parameter in the DSN. See dblib_driver.c:pdo_dblib_handle_factory() for valid
values. Some tests check version-specific behavior by parsing this string, so
it's best to use the DSN (rather than freetds.conf, etc.) to set the version.