Ignore | characters in postgres channel search (#9019)

Этот коммит содержится в:
Joram Wilander
2018-06-29 18:13:13 -04:00
коммит произвёл Jesús Espino
родитель 4245797cb2
Коммит 2362a5b7f7
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@@ -1617,6 +1617,8 @@ func (s SqlChannelStore) buildFulltextClause(term string) (fulltextClause, fullt
// Prepare the FULLTEXT portion of the query.
if s.DriverName() == model.DATABASE_DRIVER_POSTGRES {
fulltextTerm = strings.Replace(fulltextTerm, "|", "", -1)
splitTerm := strings.Fields(fulltextTerm)
for i, t := range strings.Fields(fulltextTerm) {
if i == len(splitTerm)-1 {