-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibilities with SQL Server #37
Comments
1° your proposition makes sense to me, however I believe it would be better to leave the definition of the order clause in the Source_Process_Filters function, and change the return value as appropriate instead -- something like (not tested)
Regarding 2°, considering that @jreese specifically added the DISTINCT clause in commit faf9ca0, I would assume he had a valid reason for doing so, therefore we should be careful for any potential regression before removing it. John, any comment ? |
1°) I think your approach is indeed cleaner. Works fine for me (tested with MantisBT 1.2.12/SQL Server 2008) |
Reopened as point 2° has not yet been addressed |
Assuming that you are adding some form of correction in the code for duplicate result rows, then I would imagine the DISTINCT is not necessary. But I don't even remember the context of when/why I added that, so your guess is as good as mine. |
This bug report follows bug #36 ; I found some others incomptabilities with SQL Server
config : MantisBT 1.2.12 with SQL Server 2008
plugin-version : master (changeset 2a0e94b)
1° Error when searching issues (Repositories > Search ; search for all changesets) saying that
c.timestamp
field is not in a aggregate functionquery :
This is caused by
ORDER BY
clause at the end of query2° Again when searching issues --> error cannot compare TEXT fields
query :
This is caused by
DISTINCT
clause.My workarounds / solutions :
1° move
$t_order
variable from Source_Process_Filters(..) to find(..) function. The find(..) function becomes :2° Simply delete
DISTINCT
keyword (seem not useful here) ini Source.FilterAPI.php, function findThe text was updated successfully, but these errors were encountered: