Fixed REASSIGN OWNED quoting of the new username. [Ashesh Vashi]
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 11 Jun 2009 11:07:22 +0000 (11:07 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 11 Jun 2009 11:07:22 +0000 (11:07 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7917 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/schema/pgRole.cpp

index 0ebfbc50eafead0b4efc5d440d3c9001fa9530e6..0b364afe727a336fcf4831e5f77a13123d5ffa51 100644 (file)
@@ -310,7 +310,7 @@ void pgRole::ReassignDropOwnedTo(frmMain *form)
                 if (wxMessageBox(_("Are you sure you wish to reassign all objects owned by the selected role?"), _("Reassign objects"), wxYES_NO) == wxNO)
                     return;
 
-                query = wxT("REASSIGN OWNED BY ") + GetQuotedFullIdentifier() + wxT(" TO ") + rdo.GetRole();
+                query = wxT("REASSIGN OWNED BY ") + GetQuotedFullIdentifier() + wxT(" TO ") + qtIdent(rdo.GetRole());
             }
             else
             {