Index: schema/pgFunction.cpp
===================================================================
--- schema/pgFunction.cpp	(revision 7881)
+++ schema/pgFunction.cpp	(working copy)
@@ -321,7 +321,7 @@
         // Parameter default value
         if (GetConnection()->HasFeature(FEATURE_FUNCTION_DEFAULTS) || GetConnection()->BackendMinimumVersion(8, 4))
         {
-            if (!argDefsArray.Item(i).IsEmpty())
+            if (!argModesArray.Item(i).IsSameAs(wxT("OUT"), false) && !argDefsArray.Item(i).IsEmpty())
                 arg += wxT(" DEFAULT ") + argDefsArray.Item(i);
         }
 
Index: schema/edbPackageFunction.cpp
===================================================================
--- schema/edbPackageFunction.cpp	(revision 7881)
+++ schema/edbPackageFunction.cpp	(working copy)
@@ -92,7 +92,7 @@
         // Parameter default value
         if (GetConnection()->HasFeature(FEATURE_FUNCTION_DEFAULTS) || GetConnection()->BackendMinimumVersion(8, 4))
         {
-            if (!argDefsArray.Item(i).IsEmpty())
+            if (!argModesArray.Item(i).IsSameAs(wxT("OUT"), false) && !argDefsArray.Item(i).IsEmpty())
                 arg += wxT(" DEFAULT ") + argDefsArray.Item(i);
         }
 
