summaryrefslogtreecommitdiff
path: root/drivers/adodb-ads.inc.php
AgeCommit message (Collapse)AuthorFilesLines
2021-08-17Redo Merge branch 'hotfix/5.21' Standardized file headersDamien Regad1-15/+25
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad1-25/+15
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-14Standard file header: /driversDamien Regad1-15/+25
2020-01-24Remove useless var $_has_stupid_odbc_fetch_api_changeDamien Regad1-10/+1
The variable is always true, so all tests referencing it can be removed, as well as the property itself, in the Access, ADS, ODBC and ODBC_db2 drivers.
2020-01-24ADS: fix indentation and coding guidelinesDamien Regad1-593/+661
2020-01-24Remove useless var $_haserrorfunctionsDamien Regad1-30/+10
Without the PHP version check, the variable is always true, so all tests referencing it can be removed, as well as the property itself, in the ADS, ODBC and PDO drivers.
2020-01-24Removed PHP Cascading Version based connection statementMark Newnham1-2/+1
2020-01-24removed PHP4 dependency testsMark Newnham1-3/+0
2020-01-24Removed PHP Version CheckMark Newnham1-10/+7
2020-01-24Removed PHP Version CheckMark Newnham1-19/+19
2019-11-12Codespell assisted typo cleaningJean-Michel Vourgère1-3/+3
2018-06-07Various syntax error corrections (#422)Aníbal Svarcas1-1/+1
2018-03-30Replace usages of deprecated `$php_errormsg`jrfnl1-17/+12
The PHP native `$php_errormsg` variable has been deprecated as of PHP 7.2. The recommended replacement is `error_get_last()`. A number of the driver classes used `$php_errormsg` to track if a DB action caused an error. As the `error_get_last()` function returns an array and comparing the message therefore is slightly more involved, two new methods have been introduced into the abstract parent class `ADOConnection` to handle the message comparison. The `resetLastError()` method retrieves the initial (old) error message and resets it to enable checking whether a new error has occurred, even when the new error is the same as the previous one. The new `getChangedErrorMsg()` method compares the old error message with the current one to determine whether a new message has occurred, and if so, returns the message. Refs: * http://php.net/manual/en/migration72.deprecated.php#migration72.deprecated.track_errors-and-php_errormsg * http://php.net/manual/en/reserved.variables.phperrormsg.php * http://php.net/manual/en/function.error-get-last.php Additional notes: * In the `ADODB_ads::UpdateBlob()` method, the original (old) message was not being retrieved which could result in an unrelated error being recorded. This has been fixed. * In the `ADODB_db2::_connect()` and `ADODB_db2::_pconnect()` methods, the `$php_errormsg` was being reset, but subsequently not checked for changes, so as the variable in effect was not being used, I've removed the related code. * In the `ADODB_sybase::ErrorMsg()` method, the `$php_errormsg` was being checked, but no functions which could potential cause errors are being called. As `$php_errormsg` is only available in the scope an error occurred in, this meant that `$php_errormsg` would always be empty, so I've removed the related code. Fixes #409
2018-03-30Replace $php_errormsg with error_get_last()Damien Regad1-24/+21
Reserved variable $php_errormsg is deprecated in PHP 7.2 http://php.net/manual/en/reserved.variables.phperrormsg.php Fixes #405
2015-08-11Fix#139: Remove PHP 4 ConstructorsValentin Sheyretski1-3/+3
This is the original commit from @valioz, rebased on latest master Signed-off-by: Damien Regad <dregad@mantisbt.org> Conflicts: drivers/adodb-db2ora.inc.php drivers/adodb-mssqlpo.inc.php drivers/adodb-odbc_oracle.inc.php
2015-08-11Correct function declarations for strict standards. Fixes #142Andrew Nicols1-7/+7
2015-06-25Remove useless parameter in GetRowAssoc() callsDamien Regad1-2/+2
Because of the change in default value for the method's parameter, it is no longer needed to specify the constant when calling GetRowAssoc() in the individual drivers.
2014-02-24Remove closing php tagDamien Regad1-1/+0
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-01-21Bump version to 5.19devDamien Regad1-1/+1
Bumped 'dev' version allows users who rely on source code downloaded from the git repository rather than an official release tarball to reliably determine that they are running a development version of the library.
2014-01-21Ads driver: clear fields before fetchingDamien Regad1-15/+4
Ensures the fetched recordset does not contain any data left over from an earlier fetch operation. Same fix as a1e2d109b756d607fb258dcdc94aeb4a52e5b454
2013-08-05Reorg: ADOdb5 (master) branchDamien Regad1-0/+796
- Move all files in adodb5/ to root - Remove adodb-for-php4/ directory