Log Message:
-----------
fix missing quote for return type

Modified Files:
--------------
    pgadmin3/src/ui:
        dlgFunction.cpp (r1.39 -> r1.40)

Index: dlgFunction.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgFunction.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -Lsrc/ui/dlgFunction.cpp -Lsrc/ui/dlgFunction.cpp -u -w -r1.39 -r1.40
--- src/ui/dlgFunction.cpp
+++ src/ui/dlgFunction.cpp
@@ -139,12 +139,12 @@
 
         if (objectType != PG_TRIGGERFUNCTION)
         {
-            wxStringTokenizer types(function->GetArgTypes(), wxT(", "));
+            wxStringTokenizer argtypes(function->GetArgTypes(), wxT(", "));
             size_t cnt=0;
 
-            while (types.HasMoreTokens())
+            while (argtypes.HasMoreTokens())
             {
-                wxString str=types.GetNextToken();
+                wxString str=argtypes.GetNextToken();
                 if (str.IsEmpty())
                     continue;
                 if (typeColNo)
@@ -198,7 +198,7 @@
             pgDatatype dt=tr.GetDatatype();
 
             typOids.Add(tr.GetOidStr());
-            types.Add(tr.GetSchemaPrefix() + dt.QuotedFullName());
+            types.Add(tr.GetQuotedSchemaPrefix() + dt.QuotedFullName());
 
             cbDatatype->Append(tr.GetSchemaPrefix() + dt.FullName());
             if (objectType != PG_TRIGGERFUNCTION)
@@ -493,8 +493,9 @@
                wxT(" RETURNS ");
         if (chkSetof->GetValue())
             sql += wxT("SETOF ");
-        sql += cbReturntype->GetValue()
-            + wxT(" AS\n");
+
+        AppendQuoted(sql, cbReturntype->GetValue());
+        sql += wxT(" AS\n");
 
         if (cbLanguage->GetValue().IsSameAs(wxT("C"), false))
         {
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to