Exemple #1
0
        protected virtual string GetNullsSort(IndexColumnDefinition column)
        {
            var sort = column.GetAdditionalFeature <PostgresIndexNullsSort>(PostgresExtensions.NullsSort);

            if (sort == null)
            {
                return(string.Empty);
            }

            if (sort.Sort == NullSort.First)
            {
                return(" NULLS FIRST");
            }

            return(" NULLS LAST");
        }