I'm getting the "Error: Null value fetched and no indicator defined" when my application fetches the data from Oracle using SOCI.
How I can avoid it?
try
{
statement st = (sql.prepare <<
"SELECT COLUMN1, COLUMN2, COLUMN3, COLUMN4, COLUMN5, COLUMN6 FROM MY_TABLE"
into(column_value1),
into(column_value2),
into(column_value3),
into(column_value4),
into(column_value5),
into(column_value6)
);
st.execute();
while (st.fetch())
{
cout << column_value1.c_str() << " : " << endl;
}
}