| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
Since the mysqli driver refactoring in 5.22.0 to support bound variable
statements, objects passed as parameters are handled as BLOBs. This is
a regression compared to earlier behavior, which allowed those having
a __toString() method to be treated as strings.
This restores the earlier functionality.
Fixes #1075
|
|
|
|
|
|
# Conflicts:
# adodb-time.inc.php
# drivers/adodb-db2.inc.php
|
|
Non-canonical cast (integer) is deprecated, use the (int) cast instead
Global search and replace throughout the code base.
Fixes #1143
|
|
|
|
|
|
Sequence methods return incorrect success values
CreateSequence uses non-standard error handling
GenID returns next id as string, not integer
|
|
Porting change from 416d279f128ab77d9d1b7b999087696e05113b1e.
|
|
|
|
The parent class' properties $fmtDate and $fmtTimeStamp are initialized
by ADODB_pdo::_UpdatePDO(), so if they are defined as properties in the
child driver, their values will automatically be picked up without the
need to manually set them in _init().
|
|
|
|
|
|
Update parent with parameter description.
|
|
Follow-up on #1122, for consistency.
Make _init() method protected, adjust the method's signature and call
parent method as appropriate.
|
|
|
|
Previously, it inherited from ADODB_pdo, which caused Fatal error:
Uncaught Error: Call to undefined method ADODB_pdo_firebird::_init().
Fixes #1122
|
|
|
|
|
|
|
|
|
|
sqlite: Fix regression in SQLDate() method
|
|
|
|
|
|
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
|
|
ADOdb version 5.22.9 released 2025-05-01
# Conflicts:
# adodb-active-record.inc.php
# adodb-active-recordx.inc.php
# adodb.inc.php
# docs/changelog.md
# drivers/adodb-postgres64.inc.php
|
|
This function does the same thing as ADODB_postgres8::_insertID(), in
a more limited way. There is no reason to keep it around.
Fixes #1069
|
|
|
|
Properly escape the $tablename and $fieldname parameters used to build
the sequence name.
|
|
# 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
|
|
ADOdb version 5.22.8 released 2025-01-25
# Conflicts:
# adodb.inc.php
# docs/changelog.md
# drivers/adodb-postgres64.inc.php
|
|
- Simplify control statements with single if expressions.
- Updated phpdoc with additional details on how to set connection
property values.
- Removed to-do that seemed wrong since the user should use
setConnectionParameter for those or set the property directly.
- Allow setting of ssl cert property values, clientFlags, port, and
socket using the standard setConnectionParameter functionality.
Feedback updates:
- Return false for special cases with type checks on sslsert, socket,
clientflags, or port fail
- Added invalid connection param to output.
- Simplified isset checks.
- Changed sslcert to ssl and simplified subkeys to ('key', 'cert', 'ca',
'capath', 'cipher').
- Removed code duplication.
- is_numeric should be checking value not parameter
Fixes #1044
|
|
- Remove inappropriate setting of socket.
- Updated to use appropriate bitwise operations to check for set SSL
client flags and update the default to not overwrite set user flags.
- Add friendly error to let user know they need to add a SSL client flag
when using certificates.
Fixes #919, #1043
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|