mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-01 15:53:03 -06:00
The unqualified "View Data" action always ran with no LIMIT, unlike "First/Last 100 Rows" which hardcode limit=100 — unusable on large tables with no way to cap it. Add view_data_default_row_limit preference (int, default 0 = unlimited) under sqleditor Options. GridCommand.__init__ applies it as self.limit when cmd_type == VIEW_ALL_ROWS and the value is positive; objectquery.sql already renders LIMIT only when > 0, so no template changes needed. First/Last 100 Rows untouched. Closes #10104