Bug report #5203

Attribute editor can not insert numbers into fields of type numeric(precision, scale)

Added by Gissur Þórhallsson over 10 years ago. Updated over 10 years ago.

Category:Data Provider/PostGIS
Affected QGIS version:1.7.4 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:14942


If I have an attribute of type numeric (precision, scale) I can't insert a new field - simply put, no letters appear in the input box if the value is null (even if there is a value to begin with, and I delete the text from the box - the box become unresponsive until I Crtl-Z back).

Steps to reproduce:
1. Create a postgis table with a nullable attribute of type numeric(precision, scale) (I used 24,0)
2. Open table for editing in qgis
3. Try to insert a new feature and set a value to the aforementioned qualified numeric attribute.

Expected result: The row is updated with your value.
What actually happens: You can't write anything in the input field.

A dirty work-around is to make attributes of this type default to zero or some other value.

test_numeric_create_table.sql - A simple create table script to showcase the problem (595 Bytes) Gissur Þórhallsson, 2012-03-19 07:13 AM

Associated revisions


#1 Updated by Jürgen Fischer over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF