Opened 7 years ago

Last modified 4 years ago

#3239 new task

DB library and drivers lack bigint (int8) support

Reported by: martinl Owned by: grass-dev@…
Priority: major Milestone: 7.8.3
Component: Database Version: unspecified
Keywords: bigint, int8 Cc:
CPU: Unspecified Platform: Unspecified

Description

GRASS DBMI Library and DB driver lacks support of bigint (int8), see source:grass/trunk/include/dbmi.h#L78

Currently DB drivers just print warnings like

WARNING: Column 'pr_' : type int8 (bigint) is stored as integer (4 bytes) some data may be damaged

Since bigint is normally used GRASS DB drivers should support it.

Attachments (1)

patch64.diff (5.0 KB ) - added by turek 7 years ago.

Download all attachments as: .zip

Change History (9)

by turek, 7 years ago

Attachment: patch64.diff added

comment:1 by turek, 7 years ago

I just attached file patch64.diff​ which adds bigint support to DB library.

In the patch, there is off_t type used for bigint. It should not be used in such a way since it is intended to represent file sizes.

I used the patch as a quick fix in order to be able to work with 64 OSM identifiers. It is untested and mainly unfinished. However, it can point a way to a proper implementation.

comment:2 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:3 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:4 by martinl, 6 years ago

Milestone: 7.4.27.8.0

comment:5 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:6 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:7 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:8 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.