web/modules

Michael Mraka mmraka at fedoraproject.org
Wed Jun 27 07:50:28 UTC 2012


 web/modules/rhn/RHN/Exception.pm |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 132014256505817da37019a1f21c787177dfdc36
Author: Michael Mraka <michael.mraka at redhat.com>
Date:   Wed Jun 27 09:47:00 2012 +0200

    835608 - error messages in PostgreSQL have different pattern

diff --git a/web/modules/rhn/RHN/Exception.pm b/web/modules/rhn/RHN/Exception.pm
index ad9ae69..236a3d0 100644
--- a/web/modules/rhn/RHN/Exception.pm
+++ b/web/modules/rhn/RHN/Exception.pm
@@ -94,6 +94,15 @@ sub constraint_value {
       return "";
     }
   }
+  elsif ($self->{-text}) {
+    # PostgreSQL
+    if ($self->{-text} =~ /constraint "(.*)"/) {
+      return uc($1);
+    }
+    else {
+      return "";
+    }
+  }
   else {
     return "";
   }




More information about the spacewalk-commits mailing list