1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

psql: Improve \crosstabview error messages

This commit is contained in:
Peter Eisentraut
2016-06-24 01:08:08 -04:00
parent 562e449724
commit bd406af168
2 changed files with 4 additions and 3 deletions

View File

@ -188,7 +188,7 @@ SELECT 1 as "22", 2 as b, 3 as "Foo"
-- error: bad column number
SELECT v,h,i,c FROM ctv_data
\crosstabview 2 1 5
\crosstabview: invalid column number: "5"
\crosstabview: column number 5 is out of range 1..4
-- error: same H and V columns
SELECT v,h,i,c FROM ctv_data
\crosstabview 2 h 4