| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Florian Feldbauer | Date: | March 15 2011 9:47am |
| Subject: | Re: Problems with storein and template queries | ||
| View as plain text | |||
Hey, I'm using the mysql++-3.1.0-1.src.rpm package. First of all in this package the subfolders ssx and test are missing in the examples, so you can't build them. I used these folders from the tar-ball. But making the same changes in tquery1.cpp as you did results in the error message "Error: Not enough parameters to fill the template." Here are my changes: diff tquery1.cpp /usr/share/doc/mysql++-devel-3.1.0/examples/tquery1.cpp 30c30 < #include "stock.h" --- > 52c52 < "select * from %0 where item = %1q"); --- > "select * from stock where item = %0q"); 57,62c57 < vector<stock> res1; < query.storein(res1, "stock", "Nürnberger Brats"); --- > mysqlpp::StoreQueryResult res1 = query.store("Nürnberger Brats"); 74c69 < res1[0].item); --- > res1[0][0].c_str()); Best regards, Florian
| Thread | ||
|---|---|---|
| • Re: Problems with storein and template queries | Florian Feldbauer | 15 Mar |
| • Re: Problems with storein and template queries | Warren Young | 15 Mar |
| • Re: Problems with storein and template queries | Warren Young | 16 Mar |
| • Re: Problems with storein and template queries | Florian Feldbauer | 16 Mar |
| • Re: Problems with storein and template queries | Florian Feldbauer | 18 Mar |
| • Re: Problems with storein and template queries | Adrian Cornish | 18 Mar |
| • Re: Problems with storein and template queries | Florian Feldbauer | 18 Mar |
| • Re: Problems with storein and template queries | Warren Young | 18 Mar |
| • Fixing 3.1.0 ABI breakage (Re: Problems with storein and templatequeries) | Andrey Ponomarenko | 19 Sep |
