1. 17 May, 2009 1 commit
    • Narayanan V's avatar
      Bug#44610 RCDFMT clause requested when creating DB2 table · ca3dbc91
      Narayanan V authored
      In order to better support the usage of
      IBMDB2I tables from within RPG programs,
      the storage engine should ensure that the
      RCDFMT name is consistent and predictable
      for DB2 tables.
      
      This patch appends a "RCDFMT <name>"
      clause to the CREATE TABLE statement
      that is passed to DB2.  <name> is
      generated from the original name of
      the table itself. This ensures a
      consistent and deterministic mapping
      from the original table.
      
      For the sake of simplicity only
      the alpha-numeric characters are
      preserved when generating the new
      name, and these are upper-cased;
      other characters are replaced with
      an underscore (_). Following DB2
      system identifier rules, the name
      always begins with an alpha-character
      and has a maximum of ten characters.
      If no usable characters are found in
      the table name, the name X is used.
      ca3dbc91
  2. 15 May, 2009 24 commits
  3. 14 May, 2009 9 commits
  4. 13 May, 2009 6 commits
    • Ramil Kalimullin's avatar
      Auto-merge. · 5ae7b257
      Ramil Kalimullin authored
      5ae7b257
    • Jim Winstead's avatar
      Merge from 5.1-bugteam · 9312174f
      Jim Winstead authored
      9312174f
    • Jim Winstead's avatar
      Merge from 5.0-bugteam · 2e7cdfd3
      Jim Winstead authored
      2e7cdfd3
    • Martin Hansson's avatar
      Merge. · d4300026
      Martin Hansson authored
      d4300026
    • Anurag Shekhar's avatar
      Bug #39802 On Windows, 32-bit time_t should be enforced · 8c73cafc
      Anurag Shekhar authored
      This patch fixes compilation warning, "conversion from 'time_t' to 'ulong', 
      possible loss of data". 
      The fix is to typecast time_t to ulong before assigning it to ulong. 
      Backported this from 6.0-bugteam tree.
      8c73cafc
    • Gleb Shchepa's avatar
      Bug #44290: explain crashes for subquery with distinct in · fbb96b33
      Gleb Shchepa authored
                  SQL_SELECT::test_quick_select
      
      The crash was caused by an incomplete cleanup of JOIN_TAB::select
      during the filesort of rows for GROUP BY clause inside a subquery.
      Queries where a quick index access is replaced with filesort was
      was affected. For example:
      
        SELECT 1 FROM
          (SELECT COUNT(DISTINCT c1) FROM t1
             WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x
      
      Quick index access related data in the SQL_SELECT::test_quick_select
      function was inconsistent after an incomplete cleanup.
      This function has been completed to prevent crashes in the
      SQL_SELECT::test_quick_select function.
      fbb96b33