okbob / pspg

Unix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
BSD 2-Clause "Simplified" License
2.43k stars 85 forks source link

Sort doesn't work... #224

Closed 0-issue closed 1 year ago

0-issue commented 1 year ago

Sort doesn't seem to work on numeric(10,7) column for longitude in attached US Census by county data from 2019.

us_counties_pop_est_2019.csv

System information:

Steps to reproduce:

CREATE TABLE us_counties_pop_est_2019 (
    state_fips text,
    county_fips text,
    region smallint,
    state_name text,
    county_name text,
    area_land bigint,
    area_water bigint,
    internal_point_lat numeric(10,7),
    internal_point_lon numeric(10,7),
    pop_est_2018 integer,
    pop_est_2019 integer,
    births_2019 integer,
    deaths_2019 integer,
    international_migr_2019 integer,
    domestic_migr_2019 integer,
    residual_2019 integer,
    CONSTRAINT counties_2019_key PRIMARY KEY (state_fips, county_fips)
);
\copy us_counties_pop_est_2019 FROM '<path_to_us_counties_pop_est_2019.csv>' WITH (FORMAT CSV, HEADER);
table us_counties_pop_est_2019

Then select the column for internal_point_lon, and press d or a, and scroll to see it for yourself.

okbob commented 1 year ago

should be fixed by 4a71c13, please check

0-issue commented 1 year ago

@okbob Yes that fixed it, thanks!

okbob commented 1 year ago

út 27. 6. 2023 v 21:20 odesílatel amanvm @.***> napsal:

Closed #224 https://github.com/okbob/pspg/issues/224 as completed.

thank you for bug report

— Reply to this email directly, view it on GitHub https://github.com/okbob/pspg/issues/224#event-9656216051, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFO44OQ2LYA6RBFZEFHO3XNMXBFANCNFSM6AAAAAAZVEOTWY . You are receiving this because you were mentioned.Message ID: @.***>