| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
'Automatic conversion of false to array is deprecated' warning is
triggered when $inputarr parameter is not provided (defaulted to false).
Fixes #992
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
|
|
error_reporting()'s return value for suppressed errors changed from 0 to
4437 in PHP 8.0.0 [1].
Follow up on commit 943ac8a7de20117d85860a9b67f9eb65c5dfe4d7.
Fixes #981 (PR #984)
|
|
Regression from ae2438b731d24bf0bb159a738599b9266120e96e.
Fixes #987
|
|
|
|
|
|
|
|
|
|
Code is simplified using the new ADOFieldObj constructor.
The ADORecordSet properties $_obj and $_names are no longer needed and
have been removed.
Issue #982
|
|
This allows hanlding of dynamic properties for PHP 8.2 compatibility,
without relying on the AllowDynamicProperties attribute.
The constructor accepts an array of (fieldname => value) pairs for easy
initialization.
Fixes #982
|
|
|
|
The announcement script triggered an exception:
AttributeError: 'NoneType' object has no attribute 'tagged_date'
This was caused by a local lightweight tag, which has no associated
attributes so the lambda function used to sort the tags chronologically
crashed attempting to access non-existing 'tagged_date'.
Lambda was modified to return 0 in this case.
|
|
ADOdb version 5.22.6 released 2023-06-11
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
|
|
|
|
Avoid deprecation warning on PHP 8.2.
Fixes #975, as temporary workaround for #982
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
- Add missing global var declaration
- Coding guidelines
- Comment usage of @ operator
- Update changelog
|
|
If Insert_ID() is executed before nextval() has been called in the
current session, SELECT lastval() will fail with
`ERROR: lastval is not yet defined in this session`.
When using Exceptions, this causes one to be thrown but this is not the
expected behavior, as the function is expected to just return false in
this case.
Fixes #978
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Rewritten commit message
|
|
error_reporting()'s return value for suppressed errors changed from 0 to
4437 in PHP 8.0.0 [1]. As a result, adodb_throw() throws exceptions when
it is not expected to.
Fixes #981
[1]: https://www.php.net/manual/en/language.operators.errorcontrol.php
|
|
Regression introduced by 5c9e24cf98409004da2a5e5bd80eeec82c5a3997
For some drivers using native fetch mode constants, the $fetchMode
property was not set properly as the switch statement assigning its
value was driven by the constructor's $mode parameter instead of the
parent constructor's $adodbFetchMode property.
Fixes #980
|
|
|
|
Since 5.22.0, the mysqli driver relies on the mysqli_stmt_get_result()
function, which is only available in the MySQL Native Driver, to execute
queries.
An attempt to connect on a system using libmysqlclient should fail with
an error message, to avoid problems down the line.
Fixes #967
|
|
|
|
|
|
|
|
This reduces code duplication as the logic to initialize $fetchMode from
$ADODB_FETCH_MODE global was repeated in most drivers.
$adodbFetchMode is systematically initialized as well now; previously it
was only set in those drivers having specific fetch modes.
Fixes #958
|
|
|
|
|
|
As mentioned in the documentation [1], function is deprecated for MySQL
databases since version 5.21.
[1]: https://adodb.org/dokuwiki/doku.php?id=v5:reference:connection:setcharset
|
|
Fixes #962
|
|
It does not make much sense anymore in the age of 64-bit computing,
where timestamps will not overflow for 292 billion years...
Fixes #970
|
|
|
|
|
|
|
|
It does not make much sense anymore in the age of 64-bit computing,
where timestamps will not overflow for 292 billion years...
it will be removed in a future relase of ADOdb
Issue #963
|
|
Regression introduced by bda6e1ea4271d0818dc22213e6a37269eea427b4.
Fixes #968, PR #969
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Changes from original contribution:
- extract trim() call from if statement
- revised commit message
- backport to hotfix/5.22 branch
|
|
|
|
- Update child classes to be consistent with this declaration.
- Remove unnecessary, non-PHPDoc comments
- Consistent parameter names
Fixes #966
|
|
Remove redundant PHPDoc block in child classes ADODB_mysqli, ADODB_oci8.
Fixes #964
|
|
Fixes #780
|
|
Use `CAST(... AS BINARY)` instead of `/*! BINARY ... */`
Fixes #942
|
|
Use simple array references and $GLOBALS instead of reset()/next()
and a variable variable.
|
|
Fixes #961
|
|
Merge commit 917c54ec9d0df1bb34fe80a71336b446f09d74ae did not resolve
conflicted adodb.inc.php correctly: changes in the hotfix/5.22 branch
were simply ignored instead of being selectively applied.
As a result, the fix for #954 and some PHPDoc improvements were not
applied.
Fixes #960
|
|
|
|
pg_escape_string() will trigger a deprecation warning in PHP 8.1+ when
there is no connection specified. This can occur when using
setSessionVariables() in the load balancer, so we fall back to emulated
escaping in this case.
Fixes #956
|