• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Schema Postgre

#1
Hi,

How to set Multiple Schema Postgre in CodeIgniter 3 ?

Am tried like ,

Code:
$table_schema = examination,academics;
$this->setSchema($table_schema);
Code:
public function setSchema($table_schema) {
       if(!$table_schema) {
           return false;
       }
       if($this->db->dbdriver == 'postgre') {
           $this->db->simple_query('SET search_path TO ' . $table_schema . ',public');
       }    
   }
Not working Set first schema examination only, Please tell me how to set multiple Schema ??
Geetha
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.