Revision: 3012
          https://sourceforge.net/p/mrbs/code/3012/
Author:   cimorrison
Date:     2015-03-15 09:26:07 +0000 (Sun, 15 Mar 2015)
Log Message:
-----------
Fixed bugs in error reporting in sql_pgsql_table_exists()

Modified Paths:
--------------
    mrbs/trunk/web/pgsql.inc

Modified: mrbs/trunk/web/pgsql.inc
===================================================================
--- mrbs/trunk/web/pgsql.inc    2015-03-01 18:53:26 UTC (rev 3011)
+++ mrbs/trunk/web/pgsql.inc    2015-03-15 09:26:07 UTC (rev 3012)
@@ -460,8 +460,8 @@
   
   if ($res < 0)
   {
-    trigger_error(pg_result_error($res), E_USER_WARNING);
-    fatal_error(TRUE, get_vocab("fatal_db_error"));
+    trigger_error(pg_last_error($db_conn), E_USER_WARNING);
+    fatal_error(FALSE, get_vocab("fatal_db_error"));
   }
 
   return ($res == 1) ? TRUE : FALSE;
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to