List:MySQL++« Previous MessageNext Message »
From:cgifalco Date:November 12 2004 6:48am
Subject:Re: Drop database
View as plain text  
Cituji z emailu od Warren Young <mysqlpp@stripped>:

> cgifalco wrote:
>
> > query << "CREATE TABLE tab1"
> > ...
> > query.execute();
> > ...
> > query << "CREATE TABLE tab2"
> > ...
> > query.execute();
>
> Just as with the previous item you posted, you need to reset the query
> object between those two CREATE calls.  Any time you reuse the object,
> it must be reset before inserting a new SQL statement into it.
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:
> http://lists.mysql.com/plusplus?unsub=1
>
>


I'm sorry, I didn't mention it in my snippet of the code. But I have already
done it. After every query.execute(); is query.reset(); in my program and it
didn't help. The situlation was the same.

cgifalcon
Thread
Drop databasecgifalco11 Nov
  • Re: Drop databaseWarren Young11 Nov
    • Re: Drop databasecgifalco12 Nov
      • Re: Drop databaseChris Frey12 Nov
        • Re: Drop databasecgifalco12 Nov