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;
    query.execute();
    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.

Thanks,
Chuck

--
Chuck Haines
chaines@stripped
http://www.maxslack.com
-------------------------------------------
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: http://www.maxslack.com/gpgkey.txt

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