Welcome Guest, Not a member yet? Register   Sign In
Postgresql error in try block
#4

(02-21-2017, 10:30 AM)mstdmstd Wrote: Sorry, if my way was wrong, what is the right way?
I hope I explained what I want clear?

Code:
       $func_name = 'pd_update_settings_no_exists';
       $query = $this->db->query("select exists(select * from pg_proc where proname = '".$func_name."')");
       if(!$query->row()->exists){
           echo "Func not found!";
       }
Reply


Messages In This Thread
Postgresql error in try block - by mstdmstd - 02-21-2017, 01:50 AM
RE: Postgresql error in try block - by Narf - 02-21-2017, 02:08 AM
RE: Postgresql error in try block - by mstdmstd - 02-21-2017, 10:30 AM
RE: Postgresql error in try block - by turecky - 06-01-2017, 05:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB