Subject: Re: Using a template query does not work 2007-10-02 - By Maarten Schrijvers
Back > > 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. > Thanks! That was it :)
After removing some silly errors, my execute-query still does not actually insert the data into the database. When I copy-paste the query-string to Toad, it works without further hickups. I also check it from within the program: if (qInsRel.success()) MessageBox::Show("Gegevens opgeslagen", "Succes!"); //data inserted else MessageBox::Show("Er ging iets niet helemaal goed...", "Ahhh"); //failure
Is there another step I have to take before a template-query actually performs an action on the database?
|
|