You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a system that needs a vector of uint64 and have had to resort to using a vector of strings and perform conversion when reading and writing to this field, this is not ideal. Would rather not have to create a new table and have each row store one item of the vector and make a relationship to the parent table.
The text was updated successfully, but these errors were encountered:
TestTable record = {};
record.testvector.emplace_back(100); // In range of int8_t
record.testvector.emplace_back(999); // out of range of int8_t
obx_id id = testTable.put(record);
testTable.get(id); // print contents of testvector
After putting this in table and reading back get: 100 and 231(999 overflow as expected)
std::vector<int8_t> cannot be cast to std::vector<uint32_t>
I'm getting overflow behavior (which is what I expected), getting
(uint32_t)testvector[1] equals 4294967271, not 999 as the other bits are set to 1 in this case
Vector support for the other datatypes would be most appreciate.
Looking at the schema example:
https://github.com/objectbox/objectbox-generator/blob/main/test/comparison/testdata/fbs/typeful/schema.fbs
There is only support for vector of string, byte, ubyte and recently float in v4 beat.
Are there plans to support vector of: int16, int32, int64, uint16, uint32 and uint64.
I have a system that needs a vector of uint64 and have had to resort to using a vector of strings and perform conversion when reading and writing to this field, this is not ideal. Would rather not have to create a new table and have each row store one item of the vector and make a relationship to the parent table.
The text was updated successfully, but these errors were encountered: