Opened 5 years ago

Closed 5 years ago

#4607 closed defect (fixed)

New shapelib doesn't handle date = ""

Reported by: pramsey Owned by: pramsey
Priority: high Milestone: PostGIS 3.1.0
Component: postgis Version: master
Keywords: Cc:

Description

Some shapefiles include "" as a value for date fields and when we try and send that straight into PgSQL it complains. The old loader handles this, so it must have been patched at the shapelib level. This should be fixed at the loader level to avoid future shapelib update issues (never again)

Change History (3)

comment:2 by Paul Ramsey <pramsey@…>, 5 years ago

In d1a929f3/git:

treat an empty string in a date field as a NULL, references #4607

comment:3 by Paul Ramsey <pramsey@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 6428d567/git:

treat empty string as NULL in case of Date, closes #4607

Note: See TracTickets for help on using tickets.