MySQL Forums
Forum List  »  Connector/C++

Re: Problem while using MySQL connector API
Posted by: Luis Silva
Date: October 11, 2019 12:34PM

Hi!

Yes, you are right, that gives a wrong output, because its not yet fully done!

There is a workaround, which might work for you, which is using fields to create the document and so, you can print the all document, which will work.

DbDoc doc=coll.find("_id.id = :id").fields("_id.id as id", "_id.foo as foo").bind("id", 1).execute().fetchOne();
cout<< doc << endl;

So result would be document with id and foo keys.

We continue working and this, and this missing part is already detected and will be fixed.

If you find other issues or ideas, please fill in bugs/feature requests!

Any questions, please ask!

Cheers,
Luís Silva

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem while using MySQL connector API
490
October 11, 2019 12:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.