OK, this code:
query << "SELECT host__id, host__guid from host LIMIT 1";
mysqlpp::StoreQueryResult res = query.store();
hdb_host_t record(res[0]);
cout << record.id << endl << record.guid << endl;
Returns 0 and 0 whereas it *should* return:
mysql> SELECT host__id, host__guid from host LIMIT 1;
+----------+------------+
| host__id | host__guid |
+----------+------------+
| 1 | 2696239555 |
+----------+------------+
Jim
----- Original Message -----
From: "Warren Young" <mysqlpp@stripped>
To: "MySQL++ Mailing List" <plusplus@stripped>
Sent: Thursday, 18 September, 2008 3:55:06 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: Result set count correct but each attribute is empty!
James Vanns wrote:
> This is still beating me.
Send us your CREATE TABLE statement. Don't paraphrase or give
pseudocode. The raw SQL, please.
> I can confirm that simple queries execute...
[snip]
> cout << res[0][0] << endl;
[snip]
> I have now tried vector, list and set...
Try something simpler:
hdb_host_t record(res[0]);
cout << record.id << endl;
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
--
James Vanns
Systems Programmer
Framestore CFC Ltd.