Skip navigation links

MySQL Forums :: C/C++ :: MySql Cpp Connector and Load Statement


Advanced Search

MySql Cpp Connector and Load Statement
Posted by: santhosh edukulla ()
Date: September 21, 2012 07:47AM

Team,

I am using MySql C++ Connector. Iam forming load data local infile statement and executing query using execute statement as below:

string query = "LOAD ....";
stmt = mSqlCon->createStatement();
bool ret;
if ( stmt != NULL )
{
ret = stmt->execute(query);
}

The same load statement works fine on sql prompt from cli though. But, when called through API ,this wont get execute and wont return anything. The program just exits as it is.

Any idea? Or am i doing something wrong?

Any help on this is appreciated!
Santhosh

Options: ReplyQuote


Subject Written By Posted
MySql Cpp Connector and Load Statement santhosh edukulla 09/21/2012 07:47AM
Re: MySql Cpp Connector and Load Statement santhosh edukulla 11/15/2012 10:37AM
Re: MySql Cpp Connector and Load Statement Trevor Diederich 11/15/2012 08:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.