| Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
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
|
|
|
|
- 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
|
|
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
|
|
Fixes #954
|
|
|
|
|
|
Only append newline (`<br>` or `\n` depending on HTML/CLI output) when
necessary, instead of always adding a `<br>` and stripping tags
afterwards for CLI.
|
|
|
|
|
|
|
|
|
|
safe_mode was deprecated in PHP 5.3 and removed in 5.4. This removes
remaining references to it in the code.
Fixes #934
|
|
- ADOConnection: add $_metars, $locale, $metaColumnsSQL, $identitySQL,
$_genSeqSQL, $_dropSeqSQL and $_genIDSQL; add PHPDoc to
$metaDatabasesSQL $metaTablesSQL
- Exceptions: add $msg property
- DB2: reference parent connection object and fix $_queryID case
- Informix: don't cache version info in SetVersion
- odbtp: define $odbc_name, $_canSelectDb, $_lastAffectedRows properties
NOTE: this is somewhat academical as the driver is obsolete
- oci8: define $_refcursor property
- sybase: use existing $hasTransactions property instead of $_hastrans
- text: rename unused ADOConnection::$_evalAll property to $evalAll
- perf: define $settings property
- xml: add properties dbTable::$currentPlatform, dbTable::$data,
dbData::$current_field, adoSchema:$obj
This is adapted from changes proposed in #926
|
|
Adapt the few drivers that were previously using this property.
Fixes dynamic properties deprecation in PHP 8.2
Based on original submission in PR #926
|
|
Fixes #906
|
|
Fixes #906
|
|
# Conflicts:
# adodb.inc.php
|
|
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Fixes PHP 8.2 Deprecated warning: Creation of dynamic property.
Fixes #908
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Fixes PHP 8.2 Deprecated warning: Creation of dynamic property.
Fixes #909
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Cherry picked from commits feadc3df1fdb199bbef50eb404f81b7d78f94c79 and
5e41924806e5f310d30e203100f0c97cd5e93893.
# Conflicts:
# adodb.inc.php
Creation of dynamic property
- ADORecordset_sqlite3::$adodbFetchMode in adodb-sqlite3.inc.php (#911)
- ADOFieldObject::$scale in adodb-sqlite3.inc.php (#912)
Partially-supported callable
- in adodb-pdo-inc.php (#928)
|
|
ADOConnection::$databaseName was marked as obsolete in ADOdb 4.66.
Since the assignment that was kept for backwards-compatibility in the
ADOConnection::selectDB() method is causing deprecation warnings with
PHP 8.2, now is the time to get rid of it.
The 2018 rewrite of DB2 driver introduced a private $databaseName
property; this has been removed in favor of ADOConnection::$database.
Fixes #932, #904
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
Creation of dynamic property
- ADORecordset_sqlite3::$adodbFetchMode in adodb-sqlite3.inc.php (#911)
- ADOFieldObject::$scale in adodb-sqlite3.inc.php (#912)
Partially-supported callable
- in adodb-pdo-inc.php (#928)
---------
This is a re-do of fa572e96d20ac233e9dfc2d8f770234475381107 (PR #921)
with an improved commit message.
Co-authored-by: raortegar <raquel.ortega@moodle.com>
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Nothing wrong with the code changes, but the commit message is bit of a
mess, so I'll re-apply it after rewording.
|
|
deprecated in driversadodb sqlite3incphp on line 194 (#931)
* Fixed Partially-supported callable are deprecated in PHP 8.2
* Fix deprecated undefined property #912 #911 #920 #923
---------
Co-authored-by: raortegar <raquel.ortega@moodle.com>
|
|
|
|
$where was wrongly typed as bool. Changed it to string and updated
the default value from false to ''.
Fixes #915
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
|
|
Ensures that the recordset is returned in the default provided by the
PHP driver as per the documentation.
Fixes #886
|
|
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
Partial revert of 721c31492ac77aa1bd9bdd01193cd6071087b49f.
This was an early attempt to fix #848; the actual fix was implemented in
the PostgreSQL driver, but the change to ADORecordSet::__destruct() was
not reverted.
Fixes #867
|
|
|
|
ADOdb version 5.22.3 released 2022-09-06
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
|
|
See https://github.com/ADOdb/ADOdb/pull/856#discussion_r953591183
|
|
|
|
Replace hardcoded '-1' value when creating dummy RecordSets.
Issue #848
|
|
|
|
|
|
Adding $not_null, $primary_key, $unique, $has_default and $default_value
which were declared dynamically in the PostgreSQL driver (and others as
well).
(cherry picked from commit a35b97da98ec48e97e1e9290d1b0cebd880d0518)
|
|
|
|
|
|
|
|
|