| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Miklos Niedermayer | Date: | July 24 2000 3:55pm |
| Subject: | MySQL++ - row disappears | ||
| View as plain text | |||
Hi!
Is this a bug, or feauture, or what?
Result res = q.store ();
Row row;
Result::iterator i;
i = res.begin ();
row = *i;
// un = row[0];
q << "update staff_utmp set time=NOW() where user='" << row[0] <<
"'";
q.execute ();
un=row[0];
So the above example is wrong, i had to move un=row[0] 3 lines up
(commented), because if i do another query with q (like above),
row will contain something else. I think it should not.
I'll look into it more closer, i'm just finished searching for hours
what the hell is the problem with my string library... yeah the problem
was this.
Bye
Mico
| Thread | ||
|---|---|---|
| • MySQL++ - row disappears | Miklos Niedermayer | 24 Jul |
| • Re: MySQL++ - row disappears | sinisa | 25 Jul |
| • ODBC and JDBC | Simon Baillargeon | 25 Jul |
| • RE: ODBC and JDBC | Craig Vincent | 25 Jul |
| • Re: ODBC and JDBC | Sharif Islam | 25 Jul |
| • MySQL Manual | Simon Baillargeon | 25 Jul |
| • RE: MySQL Manual | Craig Vincent | 25 Jul |
| • Re: MySQL Manual | Erich L. Markert | 25 Jul |
| • Re: MySQL Manual | John Cichy | 25 Jul |
| • Re: MySQL Manual | Bud Rogers | 25 Jul |
