Opened 8 years ago
Last modified 5 years ago
#3239 new task
DB library and drivers lack bigint (int8) support
Reported by: | martinl | Owned by: | |
---|---|---|---|
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)
Change History (9)
by , 8 years ago
Attachment: | patch64.diff added |
---|
comment:1 by , 8 years ago
comment:3 by , 6 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:4 by , 6 years ago
Milestone: | 7.4.2 → 7.8.0 |
---|
comment:8 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Note:
See TracTickets
for help on using tickets.
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.