We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83dd5ea commit c791595Copy full SHA for c791595
development/db/dbal.rst
@@ -383,6 +383,13 @@ Example:
383
384
$affected_rows = $db->sql_affectedrows();
385
386
+.. warning::
387
+ Be cautious when using ``sql_affectedrows()`` to determine the number of rows affected by your query.
388
+ This function's behavior can differ depending on the used database driver and whether the query was cached.
389
+
390
+ Do not rely solely on ``sql_affectedrows()`` to confirm the number of impacted rows. Consider alternative approaches
391
+ like checking the number of rows returned by `sql_fetchrow`_ or `sql_fetchrowset`_.
392
393
sql_nextid
394
----------
395
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
0 commit comments