I am using Xcode, MySQL and XDevAPI.
I have the following table on the database
create table TABLE(ID INT, VALUE_01 INT, VALUE_02 INT, VALUE_03 INT);
I have the following values on code the code:
Table table(session, "TABLE");
int id;
set<int> numbers;
id = 2395;
numbers.insert(1);
numbers.insert(2);
numbers.insert(3);
So I wanted to try:
table.insert("ID", "VALUE_01", "VALUE_02", "VALUE_03")
.values(id)
.values(numbers)
.execute();
However, I am getting a runtime error saying:
libc++abi.dylib: terminating with uncaught exception of type mysqlx::abi2::r0::Error: CDK Error: Wrong number of fields in row being inserted
Can you help me, please?