summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2025-08-18sqlite: Fix SQLDate() methodDamien Regad1-158/+0
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.
2024-12-23Fix typosAndreas Deininger1-4/+4
2023-10-18Remove remaining ADOdb date/time function callsJoe Bordes1-0/+158
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)
2023-06-11Rename fetchObj methods to camelCaseDamien Regad1-6/+6
2023-05-18Remove Date/Time LibraryDamien Regad2-38/+0
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
2023-03-20PDO bind support both '?'-style and named parametersToru Okugawa (Tanaka)1-0/+160
- bind parameter conversion behavior is selectable with $bindParameterStyle property and associated BIND_USE_* constants - default style is BIND_USE_BOTH - outputs a message in debug mode to warn about performance Fixes #880
2023-03-17Remove safe mode referencesDamien Regad1-1/+1
safe_mode was deprecated in PHP 5.3 and removed in 5.4. This removes remaining references to it in the code. Fixes #934
2022-09-09Test case for adodb_strip_order_by()Damien Regad1-0/+45
2021-08-22Delete proxy server.php and related client scriptsDamien Regad2-221/+0
Fixes #680
2021-08-17Redo Merge tag 'v5.21.1'Damien Regad2-12/+72
# 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 Regad30-178/+571
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Reset version to avoid merge conflictsDamien Regad16-16/+16
Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad31-643/+190
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-15Remove leftover legacy headersDamien Regad1-12/+0
A few of the old headers were not removed as part of PR #728.
2021-08-15Standard file header: LibTestDamien Regad1-0/+19
2021-08-15Composer: add PHPUnit 8.5 as dev requirementDamien Regad1-1/+1
The LibTest class was initially created for PHPUnit 7, which is no longer supported and incompatible with PHP 8. Adapting function signature to match parent class's definition (return type) means that ADOdb devs are now required to run PHP 7.2 or later to execute tests.
2021-08-15Test case for _adodb_quote_fieldname()Damien Regad1-0/+53
This is a basic test case to ensure the code matches expected results as discussed in #721 [[1]]. [1]: https://github.com/ADOdb/ADOdb/issues/721#issuecomment-817338903
2021-08-14Standard file header: /testsDamien Regad30-178/+571
2021-03-11PHPDoc and camelCase for newDataDictionaryDamien Regad1-1/+1
2021-03-08Bump version to 5.21.1-devDamien Regad16-16/+16
2021-02-27Bump version to 5.21.0v5.21.0Damien Regad16-16/+16
2021-02-02Bump version to 5.21.0-rc.1v5.21.0-rc.1Damien Regad16-16/+16
2020-12-20Bump version to 5.21.0-beta.1v5.21.0-beta.1Damien Regad16-16/+16
2020-12-19adodb.org is now served over SSLDamien Regad11-12/+12
Change web site references from http://adodb.org to https.
2020-01-24Remove PHP version checks from test scriptsDamien Regad4-49/+31
2019-11-28adodb_strip_order_by() strips incorrectly if there are multiple order by ↵Mark Newnham1-1/+1
statements #549 If the SQL statement passed to adodb_strip_order contains multiple order by statements, the incorrect one is stripped. This change ensures that only the last one is stripped Co-Authored-By: mustafa-soner-acar <mustafa-soner-acar@users.noreply.github.com>
2019-11-12Codespell assisted typo cleaningJean-Michel Vourgère2-2/+2
2018-08-06Merge branch 'hotfix/5.20' (v5.20.13)Damien Regad11-12/+12
# 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 Regad16-16/+16
2018-08-06Bump version to 5.20.13v5.20.13Damien Regad16-16/+16
2018-08-06Replace adodb.sourceforge.net URLs by adodb.orgDamien Regad8-9/+9
2018-08-06Add trailing /Damien Regad2-2/+2
2018-08-06Fix or remove references to php.weblogs.com (#443)Damien Regad3-3/+3
2018-06-11mssql: Add Convert on SQLDate Method (#304)laurent-n1-28/+112
2018-03-30Bump version to 5.20.12v5.20.12Damien Regad16-16/+16
2018-03-30Bump version to 5.20.11v5.20.11Damien Regad16-16/+16
2018-03-08Bump version to 5.20.10v5.20.10Damien Regad16-16/+16
2016-12-21Bump version to 5.20.9v5.20.9Damien Regad16-16/+16
2016-12-17Added test script for mssqlnative driverLaurent Navarro1-0/+47
As proposed in PR #301
2016-12-17Bump version to 5.20.8v5.20.8Damien Regad16-16/+16
2016-10-11Remove references to ADOdb ExtensionDamien Regad1-7/+1
The ADOdb Extension's development stopped at version 5.04. It is no longer maintained or supported, yet the library still contains code referencing it. If those code branches are executed, ADOdb will not perform properly, due to missing constant declarations (among other things). This commit removes all references to the Extension. Fixes #270, #269
2016-09-20Bump version to 5.20.7v5.20.7Damien Regad16-16/+16
2016-09-20Update changelogDamien Regad16-16/+16
2016-08-31Reset version to avoid merge conflictsDamien Regad16-16/+16
2016-08-31Bump version to 5.20.6v5.20.6Damien Regad16-16/+16
2016-08-29Tests: fix XSS vulnerabilityDamien Regad1-2/+5
This issue was reported by JPCERT Coordination Center (JPCERT/CC) with reference JVN#48237713. The root cause is a foreach loop processing all GET parameters and blindly assigning them to variables, allowing an attacker to replace contents of global variables. This limits variable processing using a regex matching those used in testdatabases.inc.php (i.e. beginning with 'test' or 'no'). Fixes #274
2016-08-10Bump version to 5.20.5v5.20.5Damien Regad16-16/+16
2016-03-30Bump version to 5.20.4Damien Regad16-16/+16
2016-01-01Bump version to 5.20.3v5.20.3Damien Regad16-16/+16
2015-12-27Bump version to 5.20.2v5.20.2Damien Regad16-16/+16