1. 10 May, 2016 2 commits
  2. 06 May, 2016 1 commit
    • Alexander Barkov's avatar
      MDEV-10030 sql_yacc.yy: Split table_expression and remove PROCEDURE from... · c0a59b46
      Alexander Barkov authored
      MDEV-10030 sql_yacc.yy: Split table_expression and remove PROCEDURE from create_select, select_paren_derived, select_derived2, query_specification
      
      This change refactors the "table_expression" rule in sql_yacc.yy.
      
      Queries with subselects and derived tables, as well as "CREATE TABLE ... SELECT"
      now return syntax error instead of "Incorrect usage of PROCEDURE and ...".
      c0a59b46
  3. 05 May, 2016 1 commit
  4. 01 May, 2016 2 commits
  5. 29 Apr, 2016 5 commits
  6. 28 Apr, 2016 13 commits
  7. 27 Apr, 2016 3 commits
  8. 26 Apr, 2016 1 commit
  9. 20 Apr, 2016 2 commits
    • Igor Babaev's avatar
      7db337e3
    • Igor Babaev's avatar
      Fixed bug mdev-9937. · 3b6a64c2
      Igor Babaev authored
      When the specification of a WITH table referred to a view
      that used a based table with the same name as the WITH table
      the server went into an infinite loop because it erroneously
      resolved the reference to the base table as the reference to
      the WITH table.
      
      With tables used in a view cannot be searched for beyond the
      scope the view.
      3b6a64c2
  10. 19 Apr, 2016 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-9931. · 308cee54
      Igor Babaev authored
      When the specification of a WITH table referred to a view
      that used a based table with the same name as the WITH table
      the server went into an infinite loop because it erroneously
      resolved the reference to the base table as the reference to
      the WITH table.
      
      With tables used in a view cannot be searched for beyond the
      scope the view.
      308cee54
  11. 17 Apr, 2016 1 commit
  12. 16 Apr, 2016 2 commits
  13. 15 Apr, 2016 2 commits
  14. 14 Apr, 2016 2 commits
  15. 13 Apr, 2016 2 commits
    • Vicențiu Ciorbaru's avatar
      Make ntile use args[0] for it's argument. · 31fb045c
      Vicențiu Ciorbaru authored
      Don't hold a separate pointer as args[0] changes during fix_fields /
      split_sum_func.
      31fb045c
    • Vicențiu Ciorbaru's avatar
      Fix another bug in dense_rank. · 3dd08a11
      Vicențiu Ciorbaru authored
      When ordering by a column and partitioning by another, we must reset the
      peer_tracker for dense_rank, regardless if the value for the order
      column changes or not.
      
      Example:
      select a, b, dense_rank() over (partition by b order by a)
      a  |  b  |  dense_rank
      ----------------------
      1  | p1  |           1
      2  | p1  |           2
      2  | p2  |           1   // Here, without this fix we returned 0.
      2  | p2  |           2   // And 1 here.
      3dd08a11