mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-09-04 22:02:34 -06:00
fix issue #14.
Добавлен вывод Include для не индексируемых столбцов в определении ограничений.
This commit is contained in:
parent
a1be2784d8
commit
98c8a6937f
2 changed files with 3 additions and 1 deletions
|
|
@ -291,9 +291,10 @@ public:
|
|||
|
||||
protected:
|
||||
void ReadColumnDetails();
|
||||
wxString colInclude;
|
||||
|
||||
private:
|
||||
wxString columnNumbers, columns, quotedColumns, indexType, idxTable, reloptions, idxSchema, constraint, tablespace, colInclude;
|
||||
wxString columnNumbers, columns, quotedColumns, indexType, idxTable, reloptions, idxSchema, constraint, tablespace;
|
||||
wxString procName, procNamespace, procArgs, procArgTypeList, typedColumns, quotedTypedColumns, operatorClasses, operatorClassList;
|
||||
long columnCount;
|
||||
wxArrayString columnList, ordersArray, nullsArray, opclassesArray, collationsArray;
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ wxString pgIndexConstraint::GetDefinition()
|
|||
sql += wxT("\n USING ") + GetIndexType() + wxT(" ");
|
||||
|
||||
sql += wxT("(") + GetQuotedColumns() + wxT(")");
|
||||
if (!colInclude.IsEmpty()) sql += "\n INCLUDE (" + colInclude + ")";
|
||||
|
||||
if (GetConnection()->BackendMinimumVersion(8, 2) && GetFillFactor().Length() > 0)
|
||||
sql += wxT("\n WITH (FILLFACTOR=") + GetFillFactor() + wxT(")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue