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 c791595 commit 3a3b8a7Copy full SHA for 3a3b8a7
development/db/dbal.rst
@@ -384,7 +384,7 @@ Example:
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.
+ Be cautious when using ``sql_affectedrows()`` to determine the number of rows affected by your query, especially with **SELECT** queries.
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
0 commit comments