{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6188","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6188/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6188/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6188/events","html_url":"https://github.com/joomla/joomla-cms/pull/6188","id":58957931,"number":6188,"title":"PostgreSQL - SQL error when search for module ","user":{"login":"alikon","id":181681,"avatar_url":"https://avatars.githubusercontent.com/u/181681?v=3","gravatar_id":"","url":"https://api.github.com/users/alikon","html_url":"https://github.com/alikon","followers_url":"https://api.github.com/users/alikon/followers","following_url":"https://api.github.com/users/alikon/following{/other_user}","gists_url":"https://api.github.com/users/alikon/gists{/gist_id}","starred_url":"https://api.github.com/users/alikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikon/subscriptions","organizations_url":"https://api.github.com/users/alikon/orgs","repos_url":"https://api.github.com/users/alikon/repos","events_url":"https://api.github.com/users/alikon/events{/privacy}","received_events_url":"https://api.github.com/users/alikon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-25T19:42:01Z","updated_at":"2015-02-26T07:29:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/6188","html_url":"https://github.com/joomla/joomla-cms/pull/6188","diff_url":"https://github.com/joomla/joomla-cms/pull/6188.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/6188.patch"},"body":"#### Steps to reproduce the issue\r\nGo to the Extension -> Module Manager in Backend  and  search for a term\r\n\r\n#### Expected result\r\nIf some match are found the result module list is returned\r\n\r\n#### Actual result \r\nGot an ERROR  SQL QUERY SYNTAX ERROR  REGEXP\r\n\r\n#### System information\r\nPostgreSQL 9.3.5\r\nJoomla 3.4.0\r\n\r\n#### Additional comments\r\nthe ``` REGEXP  ``` operator work only for Mysql  \r\nfor Postgres we should use  ```  ~*   ```\r\n\r\nfix #6159 "},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/76133859","html_url":"https://github.com/joomla/joomla-cms/pull/6188#issuecomment-76133859","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6188","id":76133859,"user":{"login":"alikon","id":181681,"avatar_url":"https://avatars.githubusercontent.com/u/181681?v=3","gravatar_id":"","url":"https://api.github.com/users/alikon","html_url":"https://github.com/alikon","followers_url":"https://api.github.com/users/alikon/followers","following_url":"https://api.github.com/users/alikon/following{/other_user}","gists_url":"https://api.github.com/users/alikon/gists{/gist_id}","starred_url":"https://api.github.com/users/alikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikon/subscriptions","organizations_url":"https://api.github.com/users/alikon/orgs","repos_url":"https://api.github.com/users/alikon/repos","events_url":"https://api.github.com/users/alikon/events{/privacy}","received_events_url":"https://api.github.com/users/alikon/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T07:29:55Z","updated_at":"2015-02-26T07:29:55Z","body":"i've switched the 3 models from REGEXP to LIKE\r\n\r\ndespite i don't have a clue for MSSQL  posix pattern matching i've added the \"portability\" method regexp for Mysql and Postgresql  for future use"}}