![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I've found a bug in mysql++, when a BLOB field is used which is not the only field returned from a query. This happens only when the query is run on a 64bit machine (AMD64 in my case). To demonstrate, use the following table with the load_file and cgi_image examples: CREATE TABLE fax ( id INTEGER AUTO_INCREMENT PRIMARY KEY, fax BLOB ); execute load_file as usual. Change cgi_image to return id and fax as a result of the select. query << "SELECT " << MY_KEY << "," << MY_FIELD << " FROM " << MY_TABLE " WHERE " << MY_KEY << " = " << argv[1]; ResUse res = query.use(); |
#3
| |||
| |||
|
|
Two things to try: try query.store() and see if anything changes. Also, try the plain mysql C API to make sure that this is not a bug in mysql. Here's some sample code to get you started. It compiles but I've not run it here. It is based on some code posted earlier on the list. |
![]() |
| Thread Tools | |
| Display Modes | |
| |