Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Jul 7, 2024
2 parents 5a67262 + d8590ed commit 88a445b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions development/db/dbal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ Example:
$affected_rows = $db->sql_affectedrows();
.. warning::
Be cautious when using ``sql_affectedrows()`` to determine the number of rows affected by your query, especially with **SELECT** queries.
This function's behavior can differ depending on the used database driver and whether the query was cached.

Do not rely solely on ``sql_affectedrows()`` to confirm the number of impacted rows. Consider alternative approaches
like checking the number of rows returned by `sql_fetchrow`_ or `sql_fetchrowset`_.

sql_nextid
----------
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
Expand Down

0 comments on commit 88a445b

Please sign in to comment.