| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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
|
|
Update child classes so method signature matches the parent's.
|
|
Ref: https://php.watch/versions/8.0/final-private-function#final-private
Fixes #711
|
|
Make sure the parameter is numeric, to prevent PHP Warning or TypeError
exception when calling mysqli_options(), and if the call fails (e.g.
because an unsupported option constant was provided, throw an exception
or display an error message instead of silently failing.
Fixes #693
|
|
Add error handling for $parameter type: since mysqli_options() requires
an integer, the function now fails and returns false (or throws an
exception if enabled) when given a non-numeric value.
Fixes #693
|
|
|
|
Fixes #705
(cherry picked from commit fd4d6b09577ba461f522ca8f41a717c5c0a1428b)
|
|
|
|
|
|
Simplify the code in mysqli and postgres7 drivers, and get rid of
unnecessary `@` error suppresion.
|
|
On mysqli, PHP 8 throws an 'Uncaught TypeError: method_exists():
Argument 1 ($object_or_class) must be of type object|string, bool
given'. Checking that _connectionID is set fixes the problem.
A similar issue was found and fixed with the postgres7 driver as well.
Note that fixing the legacy mysql driver is not necessary, as the driver
has been removed in PHP 7, and the error suppression operator should do
the job on PHP 5.
Fixes #686
|
|
|
|
|
|
Allowing param(false) to reset the query parameter count (see #380,
commit 46fa66c10dc50547167d0f8bbbcb6484edf30d1c) introduced a regression
when a falsy value was used, like `param(0)` in adodb-session2.php.
ADODB_postgres64::param() now differenciates betwen use of:
- falsy value -> reset count and return the first placeholder ($1)
- boolean `false` -> reset count, do not return placeholder (next call
will return $1).
Updated PHPDoc for parent ADOConnection::param() to reflect this.
Fixes #682, #380
|
|
|
|
The $magic_quote parameter for public methods was kept for backwards
compatibility purposes, but is no longer used.
Fixes #674
|
|
# Conflicts:
# adodb.inc.php
|
|
|
|
# Conflicts:
# adodb-xmlschema03.inc.php
# adodb.inc.php
# drivers/adodb-pdo.inc.php
|
|
The primary key parameter was reversed . In addition, the method tried to obtain primary key information from the sqlite_master table, instead of the pragma
(cherry picked from commit 45a1d6a567727a846fe2fa218c3f77dbc77464fc)
|
|
ADODB_pdo::setTransactionMode was calling its parent with an undefined
$seqname variable.
|
|
On PHP 8, ADODB_pdo::_query() throws the following error:
Fatal error: Uncaught Error: Attempt to assign property "debug" on null
in adodb/drivers/adodb-pdo.inc.php:499
Only perform the assignment if _driver is not null.
Fixes #666
|
|
On PHP 8, ADORecordSet_postgres64::_close() throws the following error:
Uncaught TypeError: pg_free_result(): Argument #1 ($result) must be of
type resource, bool given in drivers/adodb-postgres64.inc.php:1052.
Adding a check to ensure _QueryID is a ressource of the expected type,
before calling pg_free_result().
Fixes #666
|
|
Conflicts:
drivers/adodb-postgres64.inc.php
|
|
Fixes #667
|
|
Fixes #646
|
|
|
|
Change web site references from http://adodb.org to https.
|
|
Note on merge conflict in adodb.inc.php:
At line 5133, parse_url() is called with `@` operator in the hotfix/5.20
branch (commit 2026e66e86f35995eee32557c2f83f1d539ca9c7) whereas the
same change in the master branch (commit c1a6794ece2b02c2a5d238159ae85da3cbd6d)
is without it. Code was kept as it is in master.
# Conflicts:
# adodb-lib.inc.php
# adodb.inc.php
# drivers/adodb-mssqlnative.inc.php
# drivers/adodb-mysqli.inc.php
# drivers/adodb-pdo.inc.php
|
|
|
|
|
|
* Add support for MySQL Version 8. See #642
The metacolumns function returns the incorrect type for unsigned integers because it doesn't include the length in MySQL 8
* Metacolumns returns wrong type for integer fields in Mysql 8 #642
|
|
Enhancement allows use of a specfic database connection port
|
|
Enhancement allows use of a specfic database connection port
|
|
|
|
Site no longer active
|
|
The PDO driver now supports persistent connections via the **pconnect()** method as well as other constuctor options via the **pdoOptions** class variable. See the ADOdb PDO documentation for more information.
|
|
The PDO driver now supports persistent connections via the **pconnect()** method as well as other constuctor options via the **pdoOptions** class variable. See the ADOdb PDO documentation for more information.
|
|
PHP7.4 requires definition of variable before accessing array offsets
|
|
PHP7.4 requires definition of variable before accessing array offset
|
|
# 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.
|