Skip to content
Snippets Groups Projects
  1. Jan 01, 2014
  2. Dec 21, 2013
    • Andreas Fischer's avatar
      Remove OC_DB_StatementWrapper::numRows(). · 63a2bea7
      Andreas Fischer authored
      Using this method will result in an unneccesary extra SQL query (which also may
      return an incorrect result because the underlying table changed in the
      meantime).
      
      In general:
      
      If you are performing an UPDATE, DELETE or equivalent query,
      OC_DB_StatementWrapper::execute() will already give you the number of
      "affected rows" via \Doctrine\DBAL\Driver\Statement::rowCount(). This will
      not work for SELECT queries, however.
      
      If you want to know whether a table contains any rows matching your condition,
      use "SELECT id FROM ... WHERE ... LIMIT 1".
      
      If you want to know whether a table contains any rows matching your condition
      and you also need the data, use "SELECT ... FROM ... WHERE ...", then use
      one of the fetch() methods.
      
      If you want to count the number of rows matching your condition, use use
      "SELECT COUNT(...) AS number_of_rows FROM ... WHERE ...", then use one of the
      fetch() methods.
      63a2bea7
  3. Dec 20, 2013
    • Vincent Petry's avatar
      Fixed apps loading order · c6377e91
      Vincent Petry authored
      On SQLite the app order can be arbitrary and cause strange bugs.
      On MySQL, the app order seems to be always alphabetical.
      
      This fix enforces alphabetical order to make sure that all environments
      behave the same and to reduce bugs related to app loading order.
      
      Fixes #6442
      c6377e91
  4. Dec 19, 2013
  5. Dec 18, 2013
  6. Dec 17, 2013
  7. Dec 16, 2013
  8. Dec 13, 2013
  9. Dec 12, 2013
  10. Dec 11, 2013
  11. Dec 10, 2013
  12. Dec 09, 2013
  13. Dec 07, 2013
  14. Dec 06, 2013
  15. Dec 05, 2013
  16. Dec 04, 2013
  17. Dec 03, 2013
  18. Dec 02, 2013
  19. Nov 29, 2013
  20. Nov 28, 2013
Loading