diff options
| author | Mark Newnham <mark@newnhams.com> | 2026-03-11 04:58:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-11 11:58:26 +0100 |
| commit | 6cbe5b99a4b50ebae57f8b7761ddcaf5e8682d3b (patch) | |
| tree | 087f03e568cbbf149f3e86a79c84085320626369 | |
| parent | b3049bb9e3e897e97b61fe52449e9fa31b36e1c4 (diff) | |
| download | adodb-6cbe5b99a4b50ebae57f8b7761ddcaf5e8682d3b.tar.gz adodb-6cbe5b99a4b50ebae57f8b7761ddcaf5e8682d3b.tar.bz2 adodb-6cbe5b99a4b50ebae57f8b7761ddcaf5e8682d3b.zip | |
Standardize autoExecute() return value
Success now returns an ADORecordSet_empty object instead of true,
to be consistent with other ADOdb insert/update functions.
Failure still returns false.
Fixes #1213, PR #1214
| -rw-r--r-- | adodb.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/adodb.inc.php b/adodb.inc.php index b5006965..991ec791 100644 --- a/adodb.inc.php +++ b/adodb.inc.php @@ -2802,7 +2802,13 @@ if (!defined('_ADODB_LAYER')) { } else { $sql = $this->getInsertSQL($rs, $fields_values); } - return $sql && $this->Execute($sql); + + if (!$sql) { + return false; + } + + $response = $this->Execute($sql); + return $response; } |
