Re: Memory leaks with mysql++-1.7.1-win32-vc++.zip
I have resolved the problem by replacing this :
----> query << "select * from baseZ where Client = %0q:what";
by this
----> query << "select * from baseZ where Client = \'%0:what\'";
The mistake is allways here.
It's the only one problem does I have found with my test.
In fact the STL Query program doesn't delete the value place instead of %0q:what due to the quote used here. This problem is in the SQLQuery::proc(SQLQueryParms& p)function. In the other case just below, the delete value is well used.
Other Template queries used as :
insert into baseZ values (%0q, %1q, %2q, %3q) are well working and doesn't do any memory leaks at the end of the program.
I had tried to delete the "what" variable in the first template querie and have used :
query.def["0"] = ... instead of, the problem is allways here.
I had tried to had %0:whereef and %01q:what, as in the samples gave on MySql++, the problem is the same.
Does someone as encountered this problem
Thanks
Patrick
Subject
Views
Written By
Posted
819
August 28, 2005 01:01PM
Re: Memory leaks with mysql++-1.7.1-win32-vc++.zip
463
August 28, 2005 03:11PM
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.