[Approved] Tiny Bug in AddIndex in DatabaseUtility.cs (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Whilst looking at something else I noticed the errors were being logged whilst music database is upgraded with an index already exists error.

    Looking at the AddIndex method in DatabaseUtility.cs this attempts to return if the index already exists rather than trying to create it. Unfortunately the SQL and logic does not work (the second part of the UNION ALL is returning all temp table and their indexes)
     

    Attachments

    • addIndex_error.patch
      1.3 KB

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,846
    10,975
    Königstein (Taunus)
    Home Country
    Germany Germany
    AW: Tiny Bug in AddIndex in DatabaseUtility.cs

    Approved by whom? Please stick to the rules that the team decides/votes for new patches as we are just evaluating a severe bug which came in because one dev just committted a patch without asking the team. :D for understanding.
     

    Users who are viewing this thread

    Top Bottom