fix issue #14.

Добавлен вывод Include для не индексируемых столбцов в определении ограничений.
This commit is contained in:
lsv 2021-03-31 12:46:44 +05:00
parent a1be2784d8
commit 98c8a6937f
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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(")");