summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-02 14:05:40 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-02 14:05:40 -0500
commitdd86d3532a0bb7952958ff85f9ec4eff9e18db91 (patch)
treef2d3a546c2cb4ed02ba63eaf0f6c2efda78b5c4b /store/sql_post_store.go
parent3328505fb180e53f5d3b9454146a2050a722f37d (diff)
downloadchat-dd86d3532a0bb7952958ff85f9ec4eff9e18db91.tar.gz
chat-dd86d3532a0bb7952958ff85f9ec4eff9e18db91.tar.bz2
chat-dd86d3532a0bb7952958ff85f9ec4eff9e18db91.zip
Improved tests for search wildcards and removed duplicate search code
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r--store/sql_post_store.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go
index f514d23ed..de8c4f356 100644
--- a/store/sql_post_store.go
+++ b/store/sql_post_store.go
@@ -443,13 +443,6 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
var posts []*model.Post
- if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES {
- // Parse text for wildcards
- if wildcard, err := regexp.Compile("\\*($| )"); err == nil {
- terms = wildcard.ReplaceAllLiteralString(terms, "* ")
- }
- }
-
searchQuery := `
SELECT
*