Microsoft SQL Server automatically pads the shorter of two strings of unequal length with spaces prior to comparisons. Thus, searching for username = 'test ' (unexpectedly) matches a row where username = 'test'. Since kanboard does not rely on this behavior or its absence, simply remove the test as unecessary to avoid this differing result amongst the various database backends. Ref: https://support.microsoft.com/en-us/topic/inf-how-sql-server-compares-strings-with-trailing-spaces-b62b1a2d-27d3-4260-216d-a605719003b0
16 KiB
16 KiB