History log of /PHP-8.0/ext/odbc/php_odbc.c (Results 1 – 25 of 372)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 445d9502 10-Jun-2022 Calvin Buckley

Fix handling of single-key connection strings

A connection string may contain just a single key, but
PHP used ";" as the heuristic to detect if a string was a connection
string versu

Fix handling of single-key connection strings

A connection string may contain just a single key, but
PHP used ";" as the heuristic to detect if a string was a connection
string versus plain DSN. However, a single-key connection string
would get treated like a DSN name, i.e. "DSN=*LOCAL". This makes it
so that "=" is used, as a connection string must contain a key.

Closes GH-8748.

show more ...


# 3f71ba26 27-Apr-2021 Nikita Popov

Remove incorrect format argument

rc is not used by the printf format.


# 7f839762 26-Mar-2021 Christoph M. Becker

Fix #80460: ODBC doesn't account for SQL_NO_TOTAL indicator

The `StrLen_or_IndPtr` parameter usually may be `SQL_NO_TOTAL`; we need
to cater to that possibility to avoid working with neg

Fix #80460: ODBC doesn't account for SQL_NO_TOTAL indicator

The `StrLen_or_IndPtr` parameter usually may be `SQL_NO_TOTAL`; we need
to cater to that possibility to avoid working with negative string
lengths and other issues. A noteable exemption are calls to
`SQLGetData()` which return `SQL_SUCCESS`; in that case `SQL_NO_TOTAL`
can not occur.

Closes GH-6809.

show more ...


# f674a334 05-Jan-2021 Christoph M. Becker

Fix #80592: all floats are the same in ODBC parameters

We must not release the strings until we are done with them.

Closes GH-6579.


Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1
# ee3227af 29-Oct-2020 Christoph M. Becker

Fix format specifier

In this function, `i` is of type `size_t`.


# c21e901b 29-Oct-2020 Christoph M. Becker

Fix #44618: Fetching may rely on uninitialized data

Unless `SQLGetData()` returns `SQL_SUCCESS` or `SQL_SUCCESS_WITH_INFO`,
the `StrLen_or_IndPtr` output argument is not guaranteed to be

Fix #44618: Fetching may rely on uninitialized data

Unless `SQLGetData()` returns `SQL_SUCCESS` or `SQL_SUCCESS_WITH_INFO`,
the `StrLen_or_IndPtr` output argument is not guaranteed to be properly
set. Thus we handle retrieval failure other than `SQL_ERROR` by
yielding `false` for those column values and raising a warning.

Closes GH-6281.

show more ...


Revision tags: php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1
# 8d4774a2 12-Oct-2020 Christoph M. Becker

Change parameters types from int to bool

These are typical boolean parameters, so we shouldn't advertize them as
integers. For the `$reverse` parameter that even fixes expectations,

Change parameters types from int to bool

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.

show more ...


# 3eae7aa7 03-Oct-2020 Christoph M. Becker

Don't separate array parameter

Closes GH-6243.


# 69ba81d1 05-Oct-2020 Christoph M. Becker

Fix #46050: odbc_next_result corrupts prepared resource

When resetting the result's values, we also have to reset its numcols.


Revision tags: php-7.2.34, php-8.0.0rc1
# 07fa1308 29-Sep-2020 Christoph M. Becker

Revert "Use external iterator instead of via the internal pointer"

This reverts commit a6ecafece90909d74a578e09f626e875d3035eab.

Closes GH-6242.


# a1ee3c74 29-Sep-2020 Christoph M. Becker

Fix recently introduced off-by-one error


# 82f0d3c1 29-Sep-2020 Nikita Popov

Remove unused variable


Revision tags: php-7.4.11
# a6ecafec 29-Sep-2020 Christoph M. Becker

Use external iterator instead of via the internal pointer


Revision tags: php-7.3.23
# bf5f07cc 26-Sep-2020 Christoph M. Becker

Fix #80152: odbc_execute() moves internal pointer of $params

As least intrusive fix, we separate the passed array argument.

Closes GH-6219.


# 9f5a7718 27-Sep-2020 Christoph M. Becker

Fix #22986: odbc_connect() may reuse persistent connection

`odbc_connect()` should not reuse persistent connections, since that
prohibits multiple concurrent connections, which are occas

Fix #22986: odbc_connect() may reuse persistent connection

`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.

show more ...


# df5efa2f 25-Sep-2020 Christoph M. Becker

Fix #80150: Failure to fetch error message

In case of statement related errors, we need to pass the respective
statement handle to `SQLError()`.

Closes GH-6217.


# a49555a9 25-Sep-2020 Christoph M. Becker

Fix #80147: BINARY strings may not be properly zero-terminated

We have to manually ensure that all strings fetched from a data source
are zero-terminated.

Closes GH-6213.


# 9b50fd26 17-Sep-2020 Máté Kocsis

Fix UNKNOWN default values in ext/odbc

Closes GH-6154


# 610e7d2c 24-Sep-2020 Christoph M. Becker

Fix #78470: odbc_specialcolumns() no longer accepts $nullable

It is mandatory to pass either `SQL_NO_NULLS` or `SQL_NULLABLE` as
tenth parameter to `SQLSpecialColumns()`; otherwise the f

Fix #78470: odbc_specialcolumns() no longer accepts $nullable

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.

show more ...


# d4e5b5b6 17-Sep-2020 Nikita Popov

Fix compilation warnings in odbc

SQLCHAR* cast all the things.


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1
# c1823c6c 12-Sep-2020 George Peter Banyard

Promote warning to Error in ODBC extension

Closes GH-6123


Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22
# 3e800e99 24-Aug-2020 Máté Kocsis

Move custom type checks to ZPP

Closes GH-6034


Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21, php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20
# 2b5de6f8 01-Jul-2020 Max Semenik

Remove proto comments from C files

Closes GH-5758


Revision tags: php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19
# 1f521a0b 27-May-2020 Dmitry Stogov

Fixed possible usage of uninitialized value


Revision tags: php-7.4.7RC1, php-7.3.19RC1
# 85104fae 20-May-2020 George Peter Banyard

Fix [-Wundef] warning in ODBC extension


12345678910>>...15