| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
ADOdb date/time library was removed in #970. Follow-up PR #1002 replaced
legacy adodb_date()/adodb_date2() calls through custom functions, by
native strftime().
That introduced a regression in SQLDate() behavior, as the date formats
changed from PHP-style to strftime (e.g. `Ymd` -> `%Y%m%d`).
This commit partially reverts 4700171afa6c5f939e8d04b079331e207dea22ca
and reintroduces the createFunction() call with a closure
providing behavior compatible with the legacy adodb_date2() function.
It also removes the now-useless test script that was added as part of
PR #1002.
|
|
|
|
Fixes #1090
Signed-off-by: Damien Regad <dregad@mantisbt.org>
The original commit was modified to remove the change of indentation
from tab to space.
|
|
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
Use a single, more advanced regex to parse the table SQL, allowing
identification of foreign key definitions with a single pass, instead of
several preg_split/preg_match calls.
The new regex recognizes both column and table constraints, and allows
composite keys too.
Case conversion (when $upper parameter is true) is performed within the
foreach loop that builds the return array, instead of calling
array_change_key_case() at the end.
Fixes #1078, #1079, #1080
|
|
Fixes metaForeignKeys() method returning nothing when FOREIGN keyword
was not given in upper case.
Fixes #1078
|
|
- Fix static analysis warnings
- Remove useless code
- Coding guidelines
|
|
|
|
According to SQLite schema documentation, the only valid values for
*type* are 'table', 'index', 'view', or 'trigger' [1] so testing for
`type != 'meta'` is useless.
[1]: https://sqlite.org/schematab.html#interpretation_of_the_schema_table
|
|
|
|
Use query parameters instead of injecting the table name in the SQL, in
the following methods:
- metaColumns()
- metaForeignKeys()
- metaIndexes()
Thanks to Marco Nappi (@mrcnpp) for reporting this vulnerability.
Fixes #1083, CVE-2025-54119, GHSA-vf2r-cxg9-p7rf
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
|
|
Without debug flag, the library returns '0' instead of error messages
and correct SQLite error codes.
Fixes #1061, PR #1062
|
|
This is a follow-up on commit bffa42e206d758af3095b8a0bdbf3c3ad8fb5e51.
Following removal of adodb-time library, some function calls were not
cleaned up in the code base. This fixes that.
Includes a standalone test script to validate the functionality.
Fixes #970 (PR #1002)
|
|
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
|
|
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
|
|
- Update child classes to be consistent with this declaration.
- Remove unnecessary, non-PHPDoc comments
- Consistent parameter names
Fixes #966
|
|
- public visibility
- camelCase
- change $owner default from false to ''
- add $associative param where missing
- PHPDoc updates
|
|
|
|
Try to do it right this time...
# Conflicts:
# adodb-memcache.lib.inc.php
Fixes #751
|
|
Fixes #751
|
|
The conflicts resolution applied when merging the Standardized file
headers (commit e9dcce3df24912ad869d0193f0b419f2309101fc) was seriously
messed up, actually overwriting a number of changes in the master
branch.
Rather than trying to go and fix things one by one which has a high risk
of messing things further, it's easier to redo the merge from a clean
slate, so this commit reverts the following:
- "Merge branch 'hotfix/5.21' Standardized file headers",
e9dcce3df24912ad869d0193f0b419f2309101fc
- "Merge tag 'v5.21.1'",
5f437df3104159d5d659f60e31bef8d33c34995f
- "Reset version to 5.22.0-dev"
af9234a525c3255af051a330164486d73be4c63a
- "Fix incorrect resolution of merge conflicts"
a6733f61b0165b366c8d2c70d9af82edc3881951.
- "Fix syntax error in toexport.inc.php"
20b01e83cb61b6b2460f64c7d1277c5f4cc28574.
Fixes #751
|
|
|
|
|
|
Update child classes so method signature matches the parent's.
|
|
|
|
|
|
|
|
The primary key parameter was reversed . In addition, the method tried to obtain primary key information from the sqlite_master table, instead of the pragma
(cherry picked from commit 45a1d6a567727a846fe2fa218c3f77dbc77464fc)
|
|
|
|
Change web site references from http://adodb.org to https.
|
|
ADOdb automatically disallows setting of NOT NULL or DEFAULT values on
blob type fields. This was due to historic limitations on data types
that no longer exists.
This commit takes the work done in PR #118 by @obmsch and adds the
driver for SQLite.
Fixes #292
|
|
The columns list in the metaindexes funtion in the SQLite driver was returned as a CSV list, not an array
|
|
# Conflicts:
# adodb-time.inc.php
# docs/changelog.md
# drivers/adodb-mssql.inc.php
# drivers/adodb-mssqlnative.inc.php
# drivers/adodb-oci8po.inc.php
|
|
|
|
|
|
|
|
|
|
I messed up the merge at c350c007ed585a4da4dc8c62ae7954cfe13b621f. Not
sure what I did or how, but the changes from the hotfix branch got lost.
Redoing the merge to fix the problem.
|
|
|
|
The `SelectLimit` function has a potential SQL injection vulnerability
through the use of the `nrows` and `offset` parameters which are not
forced to integers.
This is a follow-up on #311, and fixes all remaining drivers that do not
use ADOConnection::SelectLimit().
Fixes #401
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Original commits squashed, message reworded. Fixed whitespace.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|