Arthi, It is known issue [1]. It has been fixed already and this fix is going to be included to the next release. You can try using code from master brach or as a workaround you can try using no-throw method version instead i.e. QueryFieldsRow::GetNext(IgniteError& err).
[1] - https://issues.apache.org/jira/browse/IGNITE-2652 Best Regards, Igor On Thu, Mar 10, 2016 at 1:31 PM, arthi <[email protected]> wrote: > Thanks Igor. It works! > > I am able to read the values from the cache using the C++ client. > > when I print the values from QueryFieldsCursor, I get a compilation error. > This code follows your examples - > Cache<int, Person> cache = grid.GetOrCreateCache<int, Person>("myCache"); > > SqlFieldsQuery qry( > "select concat(FirstName, ' ', LastName), Organization.Name " > "from Person, Organization where " > "Person.OrgId = Organization.Id and " > "Person.Salary > ?"); > > qry.AddArgument(1000); > > QueryFieldsCursor cursor = cache.Query(qry); > > // Iterate over results. > while (cursor.HasNext()) > { > QueryFieldsRow row = cursor.GetNext(); > > std::cout << row.GetNext<std::string>() << " " > << row.GetNext<std::string>() << std::endl; > } > > > apache-ignite-fabric\platforms\cpp\core\include\ignite/cache/query/query_fields_row.h(112): > error C2440: 'initializing' : cannot convert from 'std::string' to > 'ignite::cache::query::QueryFieldsRow' > > Am I doing something wrong? > > thanks for all your help.... > Arthi > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/C-Client-for-SQL-Queries-tp3407p3430.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. >
