Improved code generation for functions and procedures.
alter statements for configuration settings alter statement for owner
This commit is contained in:
parent
fc58acb252
commit
54d4dfface
5 changed files with 145 additions and 69 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "PgAuthId.h"
|
||||
#include "PgAuthIdContainer.h"
|
||||
#include "PgDatabaseCatalog.h"
|
||||
#include "SqlFormattingUtils.h"
|
||||
|
||||
void PgOwnedObject::setOwnerOid(PgDatabaseCatalog& cat, Oid oid)
|
||||
{
|
||||
|
|
@ -23,3 +24,9 @@ const PgAuthId* PgOwnedObject::owner() const
|
|||
{
|
||||
return m_owner;
|
||||
}
|
||||
|
||||
|
||||
QString PgOwnedObject::alterOwnerSql(const QString& ident) const
|
||||
{
|
||||
return QString("\nALTER %1 OWNER TO %2;").arg(ident, quoteIdent(ownerName()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue