summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2026-03-11 04:58:26 -0600
committerGitHub <noreply@github.com>2026-03-11 11:58:26 +0100
commit6cbe5b99a4b50ebae57f8b7761ddcaf5e8682d3b (patch)
tree087f03e568cbbf149f3e86a79c84085320626369
parentb3049bb9e3e897e97b61fe52449e9fa31b36e1c4 (diff)
downloadadodb-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.php8
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;
}