function search_files_update_6203 in Search Files 6.2        
                          
                  
                        Same name and namespace in other branches
- 7.2 search_files.install \search_files_update_6203()
File
 
   - ./search_files.install, line 61
- Installation and update procedures for the search_files module.
Code
function search_files_update_6203() {
  $ret = array();
  
  if ($GLOBALS['db_type'] == 'pgsql') {
    if (!db_result(db_query("SELECT COUNT(*) FROM pg_proc WHERE proname = 'concat' AND pronargs = 3"))) {
      db_query("\n        CREATE OR REPLACE FUNCTION concat(text, text, text)\n        RETURNS text AS\n        'SELECT \$1 || \$2 || \$3;'\n        LANGUAGE 'sql'\n      ");
    }
  }
  return $ret;
}