Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
base: 791fbd93d09b
Choose a base ref
...
head repository: mantisbt/mantisbt
compare: 32ba11600018
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 4, 2012

  1. Whitespace fixes

    dregad committed Oct 4, 2012
    Copy the full SHA
    6ecddde View commit details
    Browse the repository at this point in the history
  2. Fix issue in tag api with odbc_mssql driver

    This branch of code was put into place to handle a deficiency in the
    odbc_mssql driver that doesn't allow for bound subqueries. This is not
    needed for the other mssql drivers, yet using db_is_mssql() returns true
    for all mssql drivers so code is indiscriminately executed for other
    drivers.
    
    $t_params[] init was changed because it only needs to be set once. It is
    needed for the query in the mssql condition block for the first query
    only to grab the list of tags that aren't specific to this bug.
    Afterwards in the second query, $t_params needs to be null or it results
    in the database returning an error due to no '?' replacements.
    Therefore, after running the first query, we need to set this to null.
    If the condition fails and the dbtype is not mssql (or 'odbc_mssql')
    then $t_params is already set.
    
    Note: the multiple query setup in the "true" condition is a really bad
    way to do this. I'm not going to mess with it, however, since the tag
    count probably won't get too high in any general scenario.
    
    Fixes #14774
    
    Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
    
    Note, this was simply checked for syntax errors and compliance with
    coding guidelines as I don't have access to an MSSQL setup.
    bstidham authored and dregad committed Oct 4, 2012
    Copy the full SHA
    32ba116 View commit details
    Browse the repository at this point in the history