diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-02 14:05:40 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-02 14:05:40 -0500 |
commit | dd86d3532a0bb7952958ff85f9ec4eff9e18db91 (patch) | |
tree | f2d3a546c2cb4ed02ba63eaf0f6c2efda78b5c4b /store/sql_post_store.go | |
parent | 3328505fb180e53f5d3b9454146a2050a722f37d (diff) | |
download | chat-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.go | 7 |
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 * |