GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Negative identity column options are never emitted in ALTER SQL · Issue #10548 · pgadmin-org/pgadmin4

Negative identity column options are never emitted in ALTER SQL #10548

New issue
Copy link
New issue
Copy link
Closed
Closed
Negative identity column options are never emitted in ALTER SQL#10548
Copy link
Labels
Bug

Description

@dpage
dpage
opened on Oct 13, 2026
Issue body actions

In tables/templates/columns/sql/default/update.sql and 16_plus/update.sql (lines 81-85 and 93-97), every identity option is guarded with |int(-1) > -1, so negative values are dropped. On a descending identity column, changing INCREMENT to -2 in the column dialog, or a MINVALUE -50 difference in Schema Diff, produces only --modified SQL and nothing changes on the server.

The guard was presumably meant to detect "not set", but -1 is a valid value for these options. Testing is defined and not None / not empty instead would fix it.

Activity

  1. dpage
    added
    Bug
    on Oct 13, 2026
  2. dpage
    added a commit that references this issue on Oct 13, 2026

    Fix negative identity column options being dropped from the generated…

    5811f55
  3. dpage commented on Oct 13, 2026

    @dpage
    dpage
    on Oct 13, 2026
    ContributorAuthor
    More actions

    Fixed in 5811f55.

  4. dpage
    closed this as completedon Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.