diff --git a/lib/modules/Sql.pmod/pgsql_util.pmod b/lib/modules/Sql.pmod/pgsql_util.pmod
index cd2badbc456d6fe366e1932975d2dfe2522abc4a..a9777153f9a490f81d049584a04fe5a7331852b5 100644
--- a/lib/modules/Sql.pmod/pgsql_util.pmod
+++ b/lib/modules/Sql.pmod/pgsql_util.pmod
@@ -2455,10 +2455,10 @@ class proxy {
                                +showbindings(portal)));
               case "53000":case "53100":case "53200":case "53300":case "53400":
               case "57P01":case "57P02":case "57P03":case "57P04":case "3D000":
-              case "34000":
+              case "34000":case "08P01":
                 preplastmessage(msgresponse);
                 PD(a2nls(lastmessage)); throw(msgisfatal(msgresponse));
-              case "08P01":case "42P05":
+              case "42P05":
                 errtype = PROTOCOLERROR;
               case "XX000":case "42883":case "42P01":
                 invalidatecache = 1;