Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pgadmin 4.9 'int' object has no attribute 'replace' with editing text fields

Tags:

pgadmin-4

I have just installed pgadmin 4.9 and am trying to edit several fields in my existing database. I right-click the table, select "View/Edit data" -> "All rows". Then in my table I change the data in a field of type "Text". When I then press the "Save" button, I get

'int' object has no attribute 'replace' 

Changing the field via an "Update" script works fine though.

Has anyone else experienced this?

This is on Windows 10 and pgadmin runs in MS Edge.

like image 948
NicolasR Avatar asked Jul 01 '19 00:07

NicolasR


People also ask

How do you find and replace in pgAdmin 4?

Use the Edit menu to search, replace, or navigate the code displayed in the SQL Editor: Select Find to provide a search target, and search the SQL Editor contents. Select Replace to locate and replace (with prompting) individual occurrences of the target.

How do you update fields in pgAdmin?

To modify the displayed data: To change a numeric value within the grid, double-click the value to select the field. Modify the content in the square in which it is displayed. To change a non-numeric value within the grid, double-click the content to access the edit bubble.

How do I make a column editable in postgresql?

Select column, right click and choose Properties... option to open column editor. Alternatively select column in tree control and on Properties tab and open column editor with edit icon. In the editor update Comment field and confirm changes with Save button.


1 Answers

This was a bug in pgAdmin4 when updating table and PK is of integer type.

It is fixed now and it will be available in next release, meanwhile you can use nightly build as a workaround.

Download: https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2019-07-01/

---- UPDATE ----

pgAdmin 4 v4.10 is released with the fix.

like image 153
Murtuza Z Avatar answered Sep 21 '22 15:09

Murtuza Z