| Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
|
|
* proper function cases
* remove space between function name and following '('
* fix some indentation where really wrong
* add { and } to single instruction ifs to avoid future potential bugs
* { on new line for functions
* { on same line as if, foreach, or switch statements
* add single space between function parameters after ,
Fixes #691
|
|
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
|
|
|
|
The property was defined in the middle of methods, moved it up with
other class properties where it belongs.
Improved PHPDoc now includes data structure description and explanation.
|
|
|
|
This caused an error on PostgreSQL:
Query failed: ERROR: argument of WHERE must be type boolean, not type integer
Fixes #707
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Fixes #705
(cherry picked from commit fd4d6b09577ba461f522ca8f41a717c5c0a1428b)
|
|
|
|
|
|
No need to have this in the code, just lookup the documentation.
|
|
- SQL syntax
- unused variables
- duplicated code
- Whitespace
- Variables and return types in PHPDoc
|
|
|
|
Simplifies the code, and gets rid of PHP Warnings, both on line 164 in
datadict-mssqlnative.inc.php:
- Trying to access array offset on value of type bool
- Undefined array key "name"
Fixes #696
|
|
Fix whitespace
|
|
This was a mistake, as discussed in [[1]].
Fixes #694
[1]: https://github.com/ADOdb/ADOdb/issues/693#issuecomment-795251586
|
|
|
|
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
|
|
|
|
|
|
|
|
When processing a .0 release with existing pre-releases, the new section
was not inserted in the Changelog.
|
|
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
|
|
|
|
|
|
|
|
|
|
- use YYYY-MM-DD date format
- remove unnecessary escape for `]`
- use raw strings for regex
- fix typo
|
|
|
|
|
|
|
|
|
|
|
|
The 5.x changelog (from 5.20.0 and up), now follows the
[Keep a changelog](https://keepachangelog.com) format.
- Release dates converted to Y-m-d ISO format
- Added sections
- Added links to GitHub release commits
- Added links to GitHub issues
|
|
The $magic_quote parameter for public methods was kept for backwards
compatibility purposes, but is no longer used.
Fixes #674
|
|
# Conflicts:
# adodb.inc.php
|
|
Follow-up on #657, applies the same logic to remaining usages.
This code will be removed in ADOdb 5.21.0.
Fixes #619
|
|
It has been unmaintained for ages. Also:
- the current version of the phpxmlrpc library [[1]] is now at a new
major version, and has a different api
- it does not make too much sense to distribute toxmlrpc.inc.php without
requiring/distributing phpxmlrpc.inc as well
- for those interested in using adodb as part of xmlrpc servers, or even
as a full-fledged proxy driver (similar to the built-in rest proxy
one) it might be easier to download the phpxmlrpc/extras package,
which has been dormant for a while but is getting refreshed these
days. I might even externalize the adodb-phpxmlrpc bridge to its own
standalone package :-)
Fixes #671
[1]: https://github.com/gggeek/phpxmlrpc
|
|
Inheritance from ADODB DataDict does not work.
This new function has been verified in PostgreSQL 12.2
Fixes #634
|
|
|
|
|
|
# Conflicts:
# adodb-xmlschema03.inc.php
# adodb.inc.php
# drivers/adodb-pdo.inc.php
|
|
for 5.20.* branch, PHP7.4 shows deprecation notice, so the function_exists() is not enough.
|
|
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)
|