limited varchar for ogr-pg driver
|Reported by:||martinl||Owned by:||warmerdam|
|Severity:||normal||Keywords:||postgresql, varchar, width|
currently OGR-PG driver doesn't allow to define fields with limited varchar type. If you define
PRECISION=YES for columns of character type OGR uses
VARCHAR. The attached patch defines
VARCHAR when field width is not positive integer.
Better solution would be probably not to mix precision with char/varchar. In other words there would be new option
USE_VARCHAR which would define if to use
PRECISION would just control whether to use
[VAR]CHAR(width) or just
[VAR]CHAR. What do you think?