Skip to content
Snippets Groups Projects
  1. Oct 09, 2014
  2. Oct 07, 2014
  3. Oct 06, 2014
  4. Oct 03, 2014
  5. Oct 02, 2014
  6. Oct 01, 2014
  7. Sep 29, 2014
  8. Sep 28, 2014
  9. Sep 27, 2014
    • Jared Hancock's avatar
      orm: Fix MySQL occasional "Commands OOS" error · aeffcb73
      Jared Hancock authored
      Under certain intermittent circumstances (usually a significant number of
      ORM queries), the ORM will trigger a MySQL error:
      
      Commands out of sync; you can't run this command now
      
      Usually this MySQL error is related to buffered versus unbuffered queries.
      However, the ORM already uses buffered queries (MySQL calls it
      "store_result"). In this case, it appears there is some sort of race between
      fetching the result metadata before configuring the statement for buffering.
      (By "race" I mean that the error is not reliably triggered).
      
      This patch seems to fix the issue by configuring buffering before fetching
      result metadata — necessary to configure the fetching (output) phase of the
      statement.
      aeffcb73
Loading