Index: dlg/dlgFunction.cpp
===================================================================
--- dlg/dlgFunction.cpp	(revision 7594)
+++ dlg/dlgFunction.cpp	(working copy)
@@ -963,7 +963,7 @@
     }
 
 	if (isProcedure)
-        AppendComment(sql, wxT("PROCEDURE ") + GetName(), function);
+        AppendComment(sql, wxT("PROCEDURE ") + qtIdent(GetName()), function);
 	else
         AppendComment(sql, wxT("FUNCTION ") + name, function);
 
