From: Warren Young Date: July 21 2008 1:23am Subject: Re: Template queries aren't working for me. List-Archive: http://lists.mysql.com/plusplus/7764 Message-Id: <161B44C2-7FD5-4B43-A71F-995F0DD8179C@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v928.1) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jul 20, 2008, at 9:13 AM, Jim wrote: > insertStr="insert into stock (item, > num,weight,price, sdate,description) values "; > insertStr+=" (%0q, %1, %2, %3, now(),%4q)"; > query << insertStr ; Quoting from the user manual, section 4.1: "To set up a template query...you call the parse() function to tell the Query object that the query string is a template query..."