Permalink
Browse files

Fix the "NO INHERIT" query

Report from Thomas Joseph.
  • Loading branch information...
1 parent 53b6a09 commit 0c0c983d42a356fa4122ee605041870472360371 @gleu gleu committed Jan 4, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG
  2. +1 −1 pgadmin/dlg/dlgTable.cpp
View
@@ -37,6 +37,7 @@ Changes
Date Dev Ver Change details
---------- --- ------ --------------
+2013-01-04 GL 1.16.2 Fix the "NO INHERIT" query. Report from Thomas Joseph.
2012-12-24 GL 1.16.2 Display default privs. Report from Nathan Alden.
2012-12-24 GL 1.16.2 Sort references by schema name and relation name in
dlgForeignKey. Report from Michal Kozusznik.
@@ -835,7 +835,7 @@ wxString dlgTable::GetSql()
definition = tmpDef.Item(index);
// We don't need to quote the table because it's already quoted
sql += wxT("ALTER TABLE ") + table->GetQuotedFullIdentifier()
- + definition + wxT("\n NO INHERIT;\n");
+ + wxT("\n NO INHERIT ") + definition + wxT(";\n");
}
// Add the INHERIT COLUMNs...
sql += tmpsql;

0 comments on commit 0c0c983

Please sign in to comment.