| Age | Commit message (Collapse) | Author | Files | Lines |
|
ADOConnection::$databaseName was marked as obsolete in ADOdb 4.66.
Since the assignment that was kept for backwards-compatibility in the
ADOConnection::selectDB() method is causing deprecation warnings with
PHP 8.2, now is the time to get rid of it.
The 2018 rewrite of DB2 driver introduced a private $databaseName
property; this has been removed in favor of ADOConnection::$database.
Fixes #932, #904
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
If called incorrectly, the affected_rows() method now returns false
instead of returning an error from the SQL server driver.
Fixes #895
|
|
|
|
Insert_id() attempts to force the return value to an integer data type
which fails if the value is out of range.
Fixes #853
|
|
Also remove redundant assignment of $this->_connectionID, which is
already set to false in ADOConnection::close().
Fixes #835
|
|
Prevents occurrence of PHP notice:
Automatic conversion of false to array is deprecated in PHP 8.1
Fixes #829
(cherry picked from commit 40c3ed6d12354f7a83d40cd18f7bc4983dbbd33b)
|
|
- public visibility
- camelCase
- change $owner default from false to ''
- add $associative param where missing
- PHPDoc updates
|
|
|
|
# Conflicts:
# adodb.inc.php
# docs/changelog.md
# drivers/adodb-mssqlnative.inc.php
# drivers/adodb-mysqli.inc.php
Fixes #751
|
|
Try to do it right this time...
# Conflicts:
# adodb-memcache.lib.inc.php
Fixes #751
|
|
Fixes #751
|
|
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
|
|
|
|
Change the static array introduced in fieldTypesArray() (see #367) to a
class variable ($fieldObjectsCache), so the cache now only lasts for the
Recordset's lifetime.
Since the mssqlnative was already using a private $fieldObjects property
for the same purpose, the declaration was removed, and usages of the old
name changed to match the one defined in the parent class.
Fixes #687
|
|
|
|
|
|
"y/m/d" key was defined both as 102 (ANSI) and 111 (Japan) (see #307).
Updating the array to match documentation for ANSI, i.e. "y.m.d" [[1]].
Fixes #748
[1]: https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql
|
|
|
|
Fixes #692
|
|
Server may return more than one row if triggers are involved (see #41).
|
|
In ADOdb 5.21.0, for performance reasons [1] the _query() method no
longer retrieves the last inserted Id.
This introduced a regression, as it was only possible to retrieve the
Insert Id for "normal" queries, but not parameterized ones as
Insert_ID() always returned null in this case.
To maintain the driver's performance, we now allow the client to
decide whether insert queries should execute the extra SCOPE_IDENTITY()
call, by providing a new enableLastInsertID() method.
Fixes #692
[1]: https://github.com/ADOdb/ADOdb/issues/185#issuecomment-169057606
|
|
|
|
|
|
|
|
|
|
|
|
Change web site references from http://adodb.org to https.
|
|
Enhancement allows use of a specfic database connection port
|
|
PHP7.4 requires definition of variable before accessing array offsets
|
|
# Conflicts:
# docs/changelog.md
# drivers/adodb-mssqlnative.inc.php
|
|
|
|
|
|
Error messages from last error are lost if the
connection is closed before retrieval
|
|
Error messages from last error are lost if the
connection is closed before retrieval
|
|
|
|
method Fields() accessed an unitialized array, that was not
trapped in versions of PHP prior to 7.4. method now checks
to see if array is initialized.
|
|
method Fields() accessed an unitialized array, that was not
trapped in versions of PHP prior to 7.4. method now checks
to see if array is initialized.
|
|
Driver incorrectly used mssql functionality, and has never been used
with php4 anyway. Now reverts to parent method for unixdate/unixtime.
|
|
|
|
|
|
|
|
|
|
|
|
MetaForeignKeys returns an associative array with the name of reference
table for key. But when there are 2 foreign keys from the same reference
table, MetaForeignKeys returns only the last foreign key.
A solution is to merge arrays when there are several foreign keys.
Fixes #486
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Original commits from PR squashed and message reworded.
|
|
The recent release of the PHP mssql native driver (5.6) has introduced
an issue that causes ADODB/PHP to crash on any query that returns no
fields/data.
Until a fix is available, we remove the sqlsrv_field_metadata() call in
_initrs() method, since the _numOfFields property is anyway initialized
as part of _fetchFields() execution.
Fixes #492
|
|
|
|
|
|
The metaProcedures method is now supported for the SQL Server native driver, and returns a list of stored procedures, functions and methods
|
|
|
|
# Conflicts:
# adodb-time.inc.php
# docs/changelog.md
# drivers/adodb-mssql.inc.php
# drivers/adodb-mssqlnative.inc.php
# drivers/adodb-oci8po.inc.php
|