summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2018-08-06Merge branch 'hotfix/5.20' (v5.20.13)Damien Regad38-41/+41
# 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 Regad56-56/+56
2018-08-06Bump version to 5.20.13v5.20.13Damien Regad56-56/+56
2018-08-06Fix Sourceforge tracker linksDamien Regad3-4/+4
2018-08-06Replace adodb.sourceforge.net URLs by adodb.orgDamien Regad31-31/+31
2018-08-06Standardize "latest version" commentsDamien Regad1-1/+2
2018-08-06Add trailing /Damien Regad3-3/+3
2018-08-06Fix or remove references to php.weblogs.com (#443)Damien Regad3-3/+3
2018-08-03mssql: support Windows authentication (#353)Damien Regad1-8/+36
2018-08-03db2: full driver rewrite (#442)Damien Regad1-332/+1497
2018-08-03change property name ssl_cer -> ssl_certDamien Regad1-3/+3
Align property name with the underlying mysqli_ssl_set() function's parameter name. Follow-up from b6f3e24312a507efea2da758660ca0c58b13de34 (#416).
2018-07-29Add support for Windows AuthenticationMark Newnham1-8/+36
1. Manage user id and password parameters so that Windows Authentication can be used to connect to a SQL Server database (see #353). 2. Per ADOdb standard, print a message if the connection fails because the PHP driver is not installed
2018-07-29This release of the IBM DB2 driver is a full rewrite, based on the DB2Mark Newnham1-332/+1497
native mode client, instead of the ODBC based one used previously. It encompasses the following changes: 1. All of the missing data dictionary functions have been added. 2. Proper binding of parameters to queries. 3. Support for stored procedures. 4. Full support for specific table casing, via a new method, setTableCase(). 5. Support for the setConnectionParameter() method, allowing use of elements such as CURSOR and trustedcontext 6. Connections via both catalogued and uncatalogued connections. 7. Support for sequences 8. The option $uCaseTables is no longer supported 9. The performance monitor is currently out of operation due to changes in the DB2 system tables The driver has been tested on PHP version 7.1, and is not supported on ADOdb versions less than 5.21
2018-07-26Fixed typo. Thanks peterddColin Morris1-1/+1
2018-07-26NULL not FALSEColin Morris1-5/+5
2018-07-26Spacing matchColin Morris1-2/+2
2018-07-26Adding SSL flags for mysqli_ssl_setColin Morris1-0/+10
2018-07-21Variable not initialized see #437Mark Newnham1-0/+1
If an invalid sql statement is passed to the function, a runtime error is generated due to an undeclared variable
2018-07-21Variable not initialized see #437Mark Newnham1-2/+2
If an invalid sql statement is passed to the function, a runtime error is generated due to an undeclared variable
2018-07-20Fix #143 causes problems with prepared statements in driver, see #318Mark Newnham1-1/+7
The addition of the close method in the destructor of the core ADOrecordset class causes prepared statements to fail because the connection to the resource is closed too early. This fix overrides the destructor for the oracle driver which is the only one with reported issues.
2018-07-20Fix #143 causes problems with prepared statements in driver, see #318Mark Newnham1-1/+7
The addition of the close method in the destructor of the core ADOrecordset class causes prepared statements to fail because the connection to the resource is closed too early. This fix overrides the destructor for the oracle driver which is the only one with reported issues.
2018-07-20Insert_ID Returns null when table name in square brackets see #313Mark Newnham1-1/+1
If the commonly used method of enclosing table name is square brackets is used, insert_id() fails due to a problem with regexp
2018-07-20Insert_ID Returns null when table name in square brackets see #313Mark Newnham1-1/+1
If the commonly used method of enclosing table name is square brackets is used, insert_id() fails due to a problem with regexp
2018-07-20Insert_ID Returns null when table name in square brackets see #313Mark Newnham1-1/+2
If the commonly used method of enclosing table name is square brackets is used, insert_id() fails due to a problem with regexp
2018-07-08getInsertSql creates incorrect format for SQL Server time field, see #432Mark Newnham1-1/+1
By treating Time format fields as time for insertion purposes, ADOdb assumed that it needs to create a datetime field, but the insertion format is a character field, eg '23:56.1245', instead of 5033000200.
2018-07-08getInsertSql creates incorrect format for SQL Server time field, see #432Mark Newnham1-1/+2
By treating Time format fields as time for insertion purposes, ADOdb assumed that it needs to create a datetime field, but the insertion format is a character field, eg '23:56.1245', instead of 5033000200.
2018-07-08Complex $sql confuses bind marker replacement see #370Mark Newnham1-19/+78
A non-regexp based function has been introduced to replace a regexp based section of code that has been subject to numerous tweaks as more extreme test cases have appeared. This is now done this like this to help maintainability and avoid the need to rely on regexp experienced maintainers.
2018-07-08Complex $sql confuses bind marker replacement see #370Mark Newnham1-19/+1
Complete code update
2018-07-08Complex $sql confuses bind marker replacement see #370Mark Newnham1-0/+78
A non-regexp based function has been introduced to replace a regexp based section of code that has been subject to numerous tweaks as more extreme test cases have appeared. This is now done this like this to help maintainability and avoid the need to rely on regexp experienced maintainers.
2018-07-07Mismatched single quotes confused function See #420Mark Newnham1-1/+10
When a string containing a leading quote (but not a trailing one was passed to _query(), the function assumed that it was a fully quoted string, then failed on execution
2018-07-07Mismatched single quotes confused function See #420Mark Newnham1-1/+10
When a string containing a leading quote (but not a trailing one was passed to _query(), the function assumed that it was a fully quoted string, then failed on execution
2018-06-11mssql: Add Convert on SQLDate Method (#304)laurent-n1-0/+14
2018-06-07Various syntax error corrections (#422)AnĂ­bal Svarcas8-9/+9
2018-03-30Concat method missing for odbc_mssql driverWiXSL1-0/+29
An error may occur in comparisons that needs casting. Fixes #402 Signed-off-by: Damien Regad <dregad@mantisbt.org> Original commit modified: copied code from ADODB_mssqlnative::Concat() to include replacement of deprecated create_function() by anonymous function (7756fa6026aa55bfca7acef99846325142687508). Fixed typos and added PR reference in commit message.
2018-03-30Bump version to 5.20.12v5.20.12Damien Regad56-56/+56
2018-03-30Merge branch 'hotfix/5.20'Damien Regad6-50/+35
Conflicts: adodb.inc.php docs/changelog.md
2018-03-30Merge branch 'hotfix/5.20'Damien Regad20-86/+115
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.
2018-03-30Replace usages of deprecated `$php_errormsg`jrfnl6-50/+35
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-30Bump version to 5.20.11v5.20.11Damien Regad56-56/+56
2018-03-30Fix potential SQL injection in SelectLimit()Dave Paul13-12/+37
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.
2018-03-30Ensure SelectLimit $nrows and`$offset parameters are integersDamien Regad1-0/+2
The same is done (at least for `$nrows`) in the `SelectLimit` method of `Adodb/adodb.inc.php`. This lowers the risk of SQL injection. Fixes #311 (cherry picked from commit 7d43989dc95fd00fcf3ba73e08fdaf56ffa4f3e5)
2018-03-30Remove statics from fetchFieldDavid M. Lee1-16/+0
In the pdo_sqlsrv driver, static locals were used to cache field names. Unfortunately, this means that if the results for multiple queries were mapped, the field names for the first query were used instead of updated field names for the subsequent queries.
2018-03-30Replace $php_errormsg with error_get_last()Damien Regad6-70/+65
Reserved variable $php_errormsg is deprecated in PHP 7.2 http://php.net/manual/en/reserved.variables.phperrormsg.php Fixes #405
2018-03-30Replace create_function() by anonymous functionsDamien Regad2-2/+12
create_function() is deprecated in PHP 7.2 http://php.net/manual/en/function.create-function.php Fixes #404
2018-03-30One more occurence of each()Damien Regad1-2/+1
Fixes #373
2018-03-30Replace each() with foreach for PHP7.2 compatibilityMarina Glancy3-5/+5
Backported from d9cc6c66ec08e5a517f8fa4503345ead992e2a62. I meant to do this in 5.20.10 but I forgot... Fixes #373
2018-03-09mysql: die if extension is not availableDamien Regad1-2/+11
2018-03-09mysql: die if PHP >= 7.0, warning if >= 5.5Damien Regad1-0/+15
2018-03-08Bump version to 5.20.10v5.20.10Damien Regad56-56/+56
2018-01-30Merge branch 'hotfix/5.20.10'Damien Regad1-4/+4