List:MySQL++« Previous MessageNext Message »
From:Chuck Haines Date:January 24 2006 8:05pm
Subject:query.execute not working
View as plain text  
Hello all,
    I'm trying to run the following code:

query = conn.query();
    ttime = time( NULL );
    sprintf( dTime, "%d000", ttime );
    sql = "insert into Survey values ('";
    sql += dTime;
    sql += "', '";
    sql += dTime;
    sql += "', 'Information', 'Information')";
    query << sql;
    cout << "Error: " << query.error() << endl;

However, when I try and go look at the database, the information has not
been inserted into the Survey table.  I have already called
conn.connectwith the correct parameters and no exceptions are being
thrown from that.
Any help would be appreciated.


Chuck Haines
Tau Kappa Epsilon Fraternity
Fraternity For Life Alumni
AIM: CyberGrex
YIM: CyberGrex_27
ICQ: 3707881
GPG Fingerprint: 303A AB50 4EA9 70ED 2E30 2368 C9CD CCB5 4BD7 0989
GPG Key:

query.execute not workingChuck Haines24 Jan
  • Re: query.execute not workingWarren Young25 Jan
    • Re: query.execute not workingChuck Haines25 Jan