summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/tests
Commit message (Collapse)AuthorAgeFilesLines
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-141-1/+1
|
* Add PDO parameter types for national character set stringsAdam Baratz2017-03-202-1/+48
|
* Add test coverage for bug #72969Adam Baratz2017-01-277-0/+571
| | | | | | | | | | This was not an issue with pdo_dblib, but rather with FreeTDS. FreeTDS has been fixed as of the fc820490336c50d5c175d2a15327383256add4c9 on that repo. These tests will be skipped if a version of FreeTDS with that issue is present. I only cleaned up this commit for pushing. For fixing the FreeTDS issue and writing corresponding pdo_dblib tests, thanks to: Jeff Farr <jefarr@wayfair.com>
* Expose DB-Library version as \PDO::DBLIB_ATTR_VERSION attribute on \PDO instanceAdam Baratz2017-01-271-0/+17
|
* style cleanupAdam Baratz2017-01-271-8/+11
|
* Fix #73396: bigint columns are returned as stringsAdam Baratz2016-10-271-0/+20
|
* Limit size of result set for test queryAdam Baratz2016-09-211-1/+1
| | | | | This result set can be very large, depending on the database. This change ensures this test won't be slow.
* PHP bug 67130: nextRowset should work with unfetched rowsPeter LeBrun2016-09-211-0/+36
|
* Skip test for early TDS versionsAdam Baratz2016-09-141-0/+1
|
* Add common suiteAdam Baratz2016-09-131-0/+17
|
* Handle SQLDECIMAL/SQLNUMERIC types, which are used by later TDS versionsAdam Baratz2016-09-132-4/+34
|
* Allow \PDO::setAttribute() to set pdo_dblib query timeoutsAdam Baratz2016-09-131-0/+30
|
* Never quote values as raw binary dataAdam Baratz2016-09-121-0/+2
| | | | | | | This reverts a1a18fca6e2a1690ea113dc2ebe0e7d22fdc71a0 which was intended to fix bug #52885. That commit introduced a BC break which wasn't universally desirable. The issue of quoting binary data (or NVARCHAR strings, or other nonstandard types) will have to be addressed separately.
* Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-09-051-2/+2
|\ | | | | | | | | * PHP-5.6: Use integer placeholders, since values can vary with the TDS version
| * Use integer placeholders, since values can vary with the TDS versionAdam Baratz2016-09-051-3/+3
| |
* | pdo_dblib: stringify uniqidentifier fieldAlexander Zhuravlev2016-08-251-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary), when PDO::ATTR_STRINGIFY_FETCHES is TRUE pdo_dblib: Stringify uniqidentifier field Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary), when PDO::ATTR_STRINGIFY_FETCHES is TRUE Tests added. pdo_dblib: Stringify uniqidentifier field Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary), when PDO::ATTR_STRINGIFY_FETCHES is TRUE Tests fix. pdo_dblib: Stringify uniqueidentifier field Added separate PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER attribute instead of PDO::ATTR_STRINGIFY_FETCHES. pdo_dblib: Stringify uniqueidentifier field Added `getAttribute` support for PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER. Simplify storage of stringify_uniqueidentifier attribute
* | Correct for connection with PDO::ATTR_STRINGIFY_FETCHES set to falseAdam Baratz2016-07-081-6/+6
| |
* | fix testAnatol Belski2016-04-061-1/+1
| |
* | fix bug #71667 (emulate how mssql extension names "computed" columns)Adam Baratz2016-04-061-0/+34
| |
* | return zvals instead of strings, cast or not based on stringify attributeAdam Baratz2016-04-064-9/+75
| |
* | fix testAnatol Belski2016-04-061-2/+6
| |
* | add skip slow testAnatol Belski2016-04-061-0/+1
| |
* | Add driver-specific attributes for controlling calls to dbsetlogintime() and ↵Adam Baratz2016-04-051-0/+50
| | | | | | | | dbsettime()
* | Fix #71943: dblib_handle_quoter needs to allocate an extra byteAdam Baratz2016-04-041-0/+24
|/
* limit size of result set so unit test runs reliablyAdam Baratz2016-03-011-2/+2
|
* add test for bug #68957Anatol Belski2016-02-291-0/+29
|
* Fixed #54648 PDO::MSSQL forces format of datetime fieldsAnatol Belski2016-02-291-0/+26
| | | | adopted patch by steven dot lambeth at gmx dot de
* testcase fot bug #69757MiRacLe.RPZ2015-10-181-0/+32
|
* pdo_dblib - improve test skip messagesStanley Sufficool2010-06-305-42/+15
|
* PDO DBLIB test fixupsStanley Sufficool2010-06-294-28/+41
|
* Remove PDO DBLIB prefix from PostgreSQL PDO testsStanley Sufficool2010-06-291-28/+0
|
* OopsStanley Sufficool2010-06-292-93/+1
|
* Add tests for recent fixesStanley Sufficool2010-06-297-0/+326
|
* This commit was manufactured by cvs2svn to create branch 'PHP_5_1'.SVN Migration2005-08-081-23/+0
|
* use pdo core test suite.Wez Furlong2005-07-201-0/+23
Now passes all but one test. Volunteers that want to track down the cause for test pdo_018.phpt not passing are welcome.