[odb-users] Setting index length
Andreas Pasternak
a.pasternak at mt-robot.com
Wed Apr 6 08:26:35 EDT 2016
Hello all,
I created indexes for my tables using ODB. Now I get the following error:
what(): 1170 (42000): BLOB/TEXT column 'd_frame_id' used in key
specification without a key length
This means that I have to specify the length of the corresponding index.
I have the following code:
#pragma db index("mt::ps::TestData_idx") \
member(d_.m_test_) /std::string*/ \
)
But where do I specify with this syntax length?
Thank you!
Andreas
More information about the odb-users
mailing list