Browse Source

Added tripal_db_set_default_search_path() call to hook_init of core module so that the search_path is guranteed to alwasy be 'public' before anything is done

spficklin 12 years ago
parent
commit
f520b49dfa
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tripal_core/tripal_core.module

+ 5 - 1
tripal_core/tripal_core.module

@@ -58,7 +58,11 @@ function tripal_core_init() {
   // otherwise PostgreSQL version that may have a different datestyle setting
   // will fail when inserting or updating a date column in a table.
   db_query("SET DATESTYLE TO '%s'", 'MDY'); 
-    
+
+  // in the event that an errant Tripal or extension function fails to
+  // set the postgres search_path back to noraml we do it here on 
+  // init of the core
+  tripal_db_set_default_search_path(); 
 }
 
 /**