summaryrefslogtreecommitdiff
path: root/ext/odbc
Commit message (Collapse)AuthorAgeFilesLines
* Change parameters types from int to boolChristoph M. Becker2020-10-123-6/+6
| | | | | | | | | These are typical boolean parameters, so we shouldn't advertize them as integers. For the `$reverse` parameter that even fixes expectations, because the `reverse` member is a bitfield of 1 bit, so assigning any even integer would not set it. Closes GH-6328.
* Don't separate array parameterChristoph M. Becker2020-10-051-91/+65
| | | | Closes GH-6243.
* Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-10-052-0/+28
|\ | | | | | | | | * PHP-7.4: Fix #46050: odbc_next_result corrupts prepared resource
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-10-052-0/+28
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #46050: odbc_next_result corrupts prepared resource
| | * Fix #46050: odbc_next_result corrupts prepared resourceChristoph M. Becker2020-10-052-0/+28
| | | | | | | | | | | | When resetting the result's values, we also have to reset its numcols.
* | | Revert "Use external iterator instead of via the internal pointer"Christoph M. Becker2020-09-301-5/+17
| | | | | | | | | | | | | | | | | | This reverts commit a6ecafece90909d74a578e09f626e875d3035eab. Closes GH-6242.
* | | Fix recently introduced off-by-one errorChristoph M. Becker2020-09-291-1/+1
| | |
* | | Remove unused variableNikita Popov2020-09-291-5/+0
| | |
* | | Use external iterator instead of via the internal pointerChristoph M. Becker2020-09-291-17/+5
| | |
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-09-292-1/+27
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #80152: odbc_execute() moves internal pointer of $params
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-292-1/+27
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #80152: odbc_execute() moves internal pointer of $params
| | * Fix #80152: odbc_execute() moves internal pointer of $paramsChristoph M. Becker2020-09-292-1/+27
| | | | | | | | | | | | | | | | | | As least intrusive fix, we separate the passed array argument. Closes GH-6219.
* | | Fix #22986: odbc_connect() may reuse persistent connectionChristoph M. Becker2020-09-291-48/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `odbc_connect()` should not reuse persistent connections, since that prohibits multiple concurrent connections, which are occasionally desireable. We fix that by no longer looking for already cached connections when `odbc_connect()` is called, and instead creating a new connection instead. Closes GH-6223.
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-09-291-11/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #80150: Failure to fetch error message
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-291-11/+11
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #80150: Failure to fetch error message
| | * Fix #80150: Failure to fetch error messageChristoph M. Becker2020-09-291-11/+11
| | | | | | | | | | | | | | | | | | | | | In case of statement related errors, we need to pass the respective statement handle to `SQLError()`. Closes GH-6217.
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-09-252-0/+28
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #80147: BINARY strings may not be properly zero-terminated
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-252-0/+28
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #80147: BINARY strings may not be properly zero-terminated
| | * Fix #80147: BINARY strings may not be properly zero-terminatedChristoph M. Becker2020-09-252-0/+28
| | | | | | | | | | | | | | | | | | | | | We have to manually ensure that all strings fetched from a data source are zero-terminated. Closes GH-6213.
* | | Rename $qualifier/$owner params to $catalog/$schemaChristoph M. Becker2020-09-252-30/+30
| | | | | | | | | | | | | | | | | | | | | These have been called qualifier and owner with ODBC 2, but ODBC 3 changed that to catalog and schema, respectively. Closes GH-6210.
* | | Update ext/odbc stub hashMáté Kocsis2020-09-251-1/+1
| | |
* | | Remove outdated link to bug reportChristoph M. Becker2020-09-241-1/+0
| | | | | | | | | | | | That bug has been fixed, so no need to keep that link any longer.
* | | Fix UNKNOWN default values in ext/odbcMáté Kocsis2020-09-245-73/+69
| | | | | | | | | | | | Closes GH-6154
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-09-241-3/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Use proper skipif section
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-241-3/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Use proper skipif section
| | * Use proper skipif sectionChristoph M. Becker2020-09-241-3/+1
| | | | | | | | | | | | | | | The ODBC tests have to be skipped if no connection to the server can be established.
* | | Merge branch 'PHP-7.4' into masterChristoph M. Becker2020-09-244-4/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78470: odbc_specialcolumns() no longer accepts $nullable
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-242-1/+16
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #78470: odbc_specialcolumns() no longer accepts $nullable
| | * Fix #78470: odbc_specialcolumns() no longer accepts $nullableChristoph M. Becker2020-09-242-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | It is mandatory to pass either `SQL_NO_NULLS` or `SQL_NULLABLE` as tenth parameter to `SQLSpecialColumns()`; otherwise the function call fails. Therefore the user must be allowed to pass the desired value as parameter to `odbc_specialcolumns()` again. Closes GH-6200.
* | | Fix test for cases where data sources are availableChristoph M. Becker2020-09-241-1/+0
| | | | | | | | | | | | | | | That `bool(false)` is a relict of adapting the test expectations to the warning promotions.
* | | Run tidyNikita Popov2020-09-183-10/+10
| | | | | | | | | | | | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* | | Fix compilation warnings in odbcNikita Popov2020-09-171-52/+51
| | | | | | | | | | | | SQLCHAR* cast all the things.
* | | Generate arginfosMáté Kocsis2020-09-161-2/+2
| | |
* | | Display string default values in stubs more uniformlyMáté Kocsis2020-09-161-1/+1
| | | | | | | | | | | | Settling on using quoted string
* | | Promote warning to Error in ODBC extensionGeorge Peter Banyard2020-09-152-30/+35
| | | | | | | | | | | | Closes GH-6123
* | | Move custom type checks to ZPPMáté Kocsis2020-09-023-19/+16
| | | | | | | | | | | | Closes GH-6034
* | | Add a few missing types to stubsMáté Kocsis2020-08-012-3/+6
| | |
* | | Remove proto comments from C filesMax Semenik2020-07-061-108/+54
| | | | | | | | | | | | Closes GH-5758
* | | Replace EXPECTF when possibleFabien Villepinte2020-06-291-1/+1
| | | | | | | | | | | | Closes GH-5779
* | | Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* | | Merge branch 'PHP-7.4'Dmitry Stogov2020-05-271-0/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed possible usage of uninitialized value
| * | Merge branch 'PHP-7.3' into PHP-7.4Dmitry Stogov2020-05-271-0/+6
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed possible usage of uninitialized value
| | * Fixed possible usage of uninitialized valueDmitry Stogov2020-05-271-0/+6
| | |
* | | Fix [-Wundef] warning in ODBC extensionGeorge Peter Banyard2020-05-203-3/+3
| | |
* | | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-11/+11
| | | | | | | | | | | | | | | | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | | Generate function entries for another batch of extensionsMáté Kocsis2020-04-054-118/+134
| | | | | | | | | | | | Closes GH-5352
* | | Annotate function aliases in stubsMáté Kocsis2020-04-041-1/+5
| | |
* | | Change argument error message formatMáté Kocsis2020-02-261-2/+2
| | | | | | | | | | | | Closes GH-5211
* | | Make type error messages more consistentMáté Kocsis2020-02-171-2/+2
| | | | | | | | | | | | Closes GH-5092
* | | Revert "Replace @param annotations with type declarations"Christoph M. Becker2020-02-172-2/+3
| | | | | | | | | | | | This reverts commit c31029f335ca1b453af799805c43c37e959ad555.