Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1526 closed bug (fixed)

QgsVectorFileWriter() throws error by Postgres columns of type bigint

Reported by: hdus Owned by: nobody
Priority: minor: annoyance Milestone:
Component: Build/Install Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

The QgsVectorFileWriter()-Method throws an error when a PostGIS-Layer contains columns of type bigint. I know that not all vector file formats, especially DBF, do support this datatype. A feasible solution could be to cast this type to character strings.

Change History (6)

comment:1 by jef, 15 years ago

Priority: critical: causes crash or data corruptionminor: annoyance or enhancement
Resolution: fixed
Status: newclosed

implemented in r10099

in reply to:  1 comment:2 by hdus, 15 years ago

Replying to jef:

implemented in r10099

Thank you very much for your lightspeedfix. Would you please commit the fix also to the Version_1_0 branch?

comment:3 by hdus, 15 years ago

Resolution: fixed
Status: closedreopened

mmmm....

The export of bigint columned layer works without error message. But unfortunately the saved shape file is empty. :-((

Other layers without bigint columns are saveable as shape files without any problems.

I reopen the ticket.

in reply to:  3 comment:4 by jef, 15 years ago

Replying to hdus:

mmmm....

The export of bigint columned layer works without error message. But unfortunately the saved shape file is empty. :-((

ouch, could have sworn that it worked when I tested it. Better luck this time. fixed in r10101.

comment:5 by pcav, 15 years ago

Resolution: fixed
Status: reopenedclosed

Forgot to close it?

comment:6 by (none), 15 years ago

Milestone: Version 1.0.2

Milestone Version 1.0.2 deleted

Note: See TracTickets for help on using tickets.