summaryrefslogtreecommitdiff
path: root/adodb-active-record.inc.php
AgeCommit message (Collapse)AuthorFilesLines
2022-06-09Fix Active Record changing case of propertiesDamien Regad1-1/+2
With ADODB_ASSOC_CASE and ADODB_QUOTE_FIELDNAMES in Native mode, active record class properties were converted to uppercase. Problem was introduced by commit 7b0d040355753aa95e6068b54bbaf3014f8da3e8 (see #610). Fixes #837
2021-12-11Fix php syntax errors found with phpstan (#774)Dianne1-2/+2
Working on an open source project that uses ADOdb. Found these errors when analysing with phpstan in preparation for PHP8 upgrade.
2021-08-17Redo Merge tag 'v5.21.1'Damien Regad1-67/+38
# Conflicts: # adodb.inc.php # docs/changelog.md # drivers/adodb-mssqlnative.inc.php # drivers/adodb-mysqli.inc.php Fixes #751
2021-08-17Redo Merge branch 'hotfix/5.21' Standardized file headersDamien Regad1-19/+19
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Reset version to avoid merge conflictsDamien Regad1-1/+1
Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad1-56/+85
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
2021-08-15Use _adodb_quote_fieldname() in ADODB_Active_RecordDamien Regad1-59/+30
The code in nameQuoter() method was doing pretty much the same thing.
2021-08-15WhitespaceDamien Regad1-8/+8
2021-08-14Standard file header: /Damien Regad1-19/+19
2021-03-27PHP 8: final private makes no sense, throwing warningEloy Lafuente (stronk7)1-1/+1
Ref: https://php.watch/versions/8.0/final-private-function#final-private Fixes #711
2021-03-08Bump version to 5.21.1-devDamien Regad1-1/+1
2021-02-27Bump version to 5.21.0v5.21.0Damien Regad1-1/+1
2021-02-02Bump version to 5.21.0-rc.1v5.21.0-rc.1Damien Regad1-1/+1
2020-12-20Bump version to 5.21.0-beta.1v5.21.0-beta.1Damien Regad1-1/+1
2020-12-19adodb.org is now served over SSLDamien Regad1-1/+1
Change web site references from http://adodb.org to https.
2020-12-06Removed references to phplens.com, see #564Mark Newnham1-2/+2
2020-03-28Fix native mode casing issue, see #610Mark Newnham1-2/+1
2020-01-24Fix indentationDamien Regad1-12/+12
2020-01-24Removed active record php5 checksMark Newnham1-8/+2
2019-11-12Codespell assisted typo cleaningJean-Michel Vourgère1-1/+1
2019-05-08Merge branch 'hotfix/5.20'Damien Regad1-15/+16
# Conflicts: # docs/changelog.md
2019-05-08Use ADODB_ASSOC_CASE_xxx constantsDamien Regad1-4/+4
Code cleanup: avoid use of "magic" numbers.
2019-05-08Convert if/elseif to switchDamien Regad1-8/+11
Same change that was done in adodb-active-recordx.inc.php a few years ago (see 9f81c75d4566fea795be7024c9415909f094bf15), without the regression fixed in previous commit.
2019-05-08active record: Use ADODB_ASSOC_CASE constantDamien Regad1-6/+4
Until now, active Record used an $ADODB_ASSOC_CASE *variable* to control the fields' case, which is not used or referenced anywhere else in the ADOdb library. The correct, documented way of setting the fields' case in associative fetch mode is to define the ADODB_ASSOC_CASE constant before including adodb.inc.php. This commit replaces usages of $ADODB_ASSOC_CASE variable by the ADODB_ASSOC_CASE constant. Fixes #536 (follow-up on #535)
2019-05-08Fix Active Record field names caseAlexandre Pachot1-1/+1
When I have a class extending ADODB_Active_Record, I have only lowercase field names instead native-case field names. When the value of ADODB_ASSOC_CASE is 2, the value of $ADODB_ASSOC_CASE is NULL, so we are going to the case 0 of the switch! Signed-off-by: Damien Regad <dregad@mantisbt.org> This is the original code from PR #535, which only addresses part of the problem. the rest will be fixed in a subsequent commit. Issue #536
2019-01-06Bump version to 5.20.14v5.20.14Damien Regad1-1/+1
2018-08-06Merge branch 'hotfix/5.20' (v5.20.13)Damien Regad1-1/+1
# Conflicts: # adodb-time.inc.php # docs/changelog.md # drivers/adodb-mssql.inc.php # drivers/adodb-mssqlnative.inc.php # drivers/adodb-oci8po.inc.php
2018-08-06Reset version to avoid merge conflictsDamien Regad1-1/+1
2018-08-06Bump version to 5.20.13v5.20.13Damien Regad1-1/+1
2018-08-06Replace adodb.sourceforge.net URLs by adodb.orgDamien Regad1-1/+1
2018-07-19Active record now honours $ADODB_QUOTE_FIELDNAMES, see #309Mark Newnham1-14/+117
ADOdb active records did not correctly honor column and table name quoting, either by the internal $_quoteNames or the global $ADODB_QUOTE_FIELDNAMES. This behavior is now rectified, with the internal $_quoteNames taking precedence. In addition, the _quoteNames option now supports all the options described in the documentation for $ADODB_QUOTE_FIELDNAMES
2018-03-30Bump version to 5.20.12v5.20.12Damien Regad1-1/+1
2018-03-30Bump version to 5.20.11v5.20.11Damien Regad1-1/+1
2018-03-08Bump version to 5.20.10v5.20.10Damien Regad1-1/+1
2017-08-09Use include_once instead of include (#361)Merijn1-1/+1
Most of the includes in adodb.inc.php are done with include_once but in a couple locations its still done with include. This is the case for adodb-lib.inc.php which is conditionally included based on a global var. I ran into problems with running adodb in debug mode while running phpunit tests. Phpunit will reset the global vars and thus break the include mechanism. This is a problem of phpunit and can be worked around. However it would make adodb more robust to just use include_once everywhere. It will remove the dependency on the $ADODB_INCLUDED_LIB global var. I also replaced one include statement in adodb-time.inc.php, in various drivers and other files too, so include_once is used everywhere. Signed-off-by: Damien Regad <dregad@mantisbt.org>
2016-12-21Bump version to 5.20.9v5.20.9Damien Regad1-1/+1
2016-12-17Bump version to 5.20.8v5.20.8Damien Regad1-1/+1
2016-09-20Bump version to 5.20.7v5.20.7Damien Regad1-1/+1
2016-09-20Update changelogDamien Regad1-1/+1
2016-08-31Bump version to 5.20.6v5.20.6Damien Regad1-1/+1
2016-08-10Bump version to 5.20.5v5.20.5Damien Regad1-1/+1
2016-03-30Bump version to 5.20.4Damien Regad1-1/+1
2016-01-02Update version 5.21.0-dev release year to 2016Damien Regad1-1/+1
2016-01-01Bump version to 5.20.3v5.20.3Damien Regad1-1/+1
2015-12-27Update version to avoid merge conflictsDamien Regad1-1/+1
2015-12-27Bump version to 5.20.2v5.20.2Damien Regad1-1/+1
2015-12-06Bump version to 5.20.1v5.20.1Damien Regad1-1/+1
2015-11-28Bump version to 5.21devDamien Regad1-1/+1
2015-11-28Bump version to 5.20.0v5.20.0Damien Regad1-1/+1
2015-11-26Adjust header comment blocksDamien Regad1-1/+3
- running SED script - manual adjustments for files not processed by regex