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
Views
Written By
Posted
MySql Cpp Connector and Load Statement
1718
September 21, 2012 07:47AM


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.