• pem@mysql.com's avatar
    Fixed BUG#16474: SP crashed MySQL · 61f2dc71
    pem@mysql.com authored
      fix_fields() was not called for "order by" variables if the type was a
      "constant integer", and thus interpreted as a column index.
      However, a local variable is an expression and should not be interpreted
      as a column index. Instead it behaves just like when using a user variable
      for instance (i.e. it will not affect the ordering).
    61f2dc71
sp.test 120 KB