From: | Jan Rössler <jan(dot)rossler1(at)gmail(dot)com> |
---|---|
To: | pgadmin-support(at)postgresql(dot)org |
Subject: | pgAdmin4 1.0-RC1 - Cannot remove nor change length definition on column in "The Table Dialog" |
Date: | 2016-09-06 01:39:47 |
Message-ID: | CA+PqCOCG0BTbN8nmrmHq1C1tkWXb-+XRmfoYh4XLV6d4NE6eCg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hello,
it currently seems to be impossible to change or remove "length" from a
column's definition.
How to reproduce:
1. CREATE TABLE test(string character varying(1));
2. In sidebar, right click on "test" table and select "Properties"
3. Select "Columns"
4. Press the edit icon on column "string"
5. Go to the "Definition" tab
6. Delete the "Length" value
7. Press "Save" button
The inline value of length will change by itself to NaN and an error
message saying "can't execute an empty query" is returned when trying to
save. When I try to delete the length value inline, same error message is
also returned upon save. Meanwhile the SQL tab only shows "--modified SQL",
instead of the needed ALTER statement.
When I want to just edit the length to a different value, it doesn't work
either. In this case some SQL does get generated, but it is not a valid
statement (at least not on version 9.3).
The error message is: ERROR: syntax error at or near "," LINE 2: ALTER
COLUMN string TYPE character varying (11, None);
Tested on: pgAdmin4 1.0-RC1 Desktop, Windows 7 x64, Server: PostgreSQL 9.3.4
Regards,
Jan Rössler
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2016-09-06 08:14:59 | Re: pgAdmin4 1.0-RC1 - Cannot remove nor change length definition on column in "The Table Dialog" |
Previous Message | Ben Trewern | 2016-09-05 14:22:24 | Re: back up |