Skip to content

Commit

Permalink
#307 document query logging shortcomings
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Holywell authored and Simon Holywell committed Dec 14, 2016
1 parent 93cf580 commit 116d97f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,17 @@ the log. ``ORM::get_last_query()`` returns the most recent query
executed. ``ORM::get_query_log()`` returns an array of all queries
executed.

.. note::

The code that does the query log is an approximation of that provided by PDO/the
database (see the Idiorm source code for detail). The actual query isn't even available
to idiorm to log as the database/PDO handles the binding outside of idiorm's reach and
doesn't pass it back.

This means that you might come across some inconsistencies between what is logged and
what is actually run. In these case you'll need to look at the query log provided by
your database vendor (eg. MySQL).

Query logger
^^^^^^^^^^^^

Expand Down

0 comments on commit 116d97f

Please sign in to comment.