logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Using a template query does not work: msg#00086

Subject: Re: Using a template query does not work
Maarten Schrijvers wrote:

String^ prev = ToUCS2(qInsRel.preview().c_str()); //using this in a
messagebox to see what the query looks like...This is my last breakpoint
before things go wrong

You must pass parameters to preview() when using template queries. In this case, pass the same parameters you passed to execute(). It doesn't keep the assembled query in memory, it rebuilds it each time at need. preview() without arguments only works with fixed queries.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>