6 messages in com.mysql.lists.plusplusRe: Using a template query does not work
FromSent OnAttachments
Maarten Schrijvers27 Sep 2007 07:23 
Warren Young27 Sep 2007 19:52 
Maarten Schrijvers02 Oct 2007 04:48 
Warren Young02 Oct 2007 10:53 
Maarten Schrijvers03 Oct 2007 03:03 
Warren Young03 Oct 2007 10:36 
Subject:Re: Using a template query does not work
From:Warren Young (mysq@etr-usa.com)
Date:09/27/2007 07:52:31 PM
List:com.mysql.lists.plusplus

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.