From fff7b0d9286eee79e8eb47874a90d6e887a4c750 Mon Sep 17 00:00:00 2001
From: "Stephen R. van den Berg" <srb@cuci.nl>
Date: Tue, 21 Nov 2017 16:50:47 +0100
Subject: [PATCH] pgsql: Do not throw errors inside the callback-backend, they
 get lost.

---
 lib/modules/Sql.pmod/pgsql_util.pmod | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/modules/Sql.pmod/pgsql_util.pmod b/lib/modules/Sql.pmod/pgsql_util.pmod
index 9ac5d15686..29c35b19f4 100644
--- a/lib/modules/Sql.pmod/pgsql_util.pmod
+++ b/lib/modules/Sql.pmod/pgsql_util.pmod
@@ -1346,7 +1346,6 @@ class sql_result {
         break;
       callout(callback, 0, this, datarow, @args);
     }
-    trydelayederror();
     eoffound = 1;
     callout(callback, 0, this, 0, @args);
   }
@@ -1376,7 +1375,6 @@ class sql_result {
         break;
       callout(callback, 0, this, datarow, @args);
     }
-    trydelayederror();
     eoffound = 1;
     if (sizeof(datarow)>1)
       callout(callback, 0, this, datarow = datarow[..<1], @args);
-- 
GitLab