|
Re: Exception of type std::length_error: msg#00024db.mysql.c++
Mathieu Pagé wrote:
I think you're expecting Row::at() to return false (or, rather, an object that can be converted to false) when you walk off the end of the result set. MySQL++ doesn't do that sort of thing, by design. It signals errors with exceptions, just as you saw. That is the fall-back behavior when you turn off exceptions, however. Read the user manual for details. You might also look at examples/simple3.cpp. It operates in a way very similar to what you're doing, without needing special treatment. It does that by using a different type of query than you are using. -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Could not find working MySQL client library!: 00024, Warren Young |
|---|---|
| Next by Date: | Re: Visual Studio unable to locate mysqlpp.dll: 00024, Warren Young |
| Previous by Thread: | Exception of type std::length_errori: 00024, Mathieu Pagé |
| Next by Thread: | Re: Exception of type std::length_error: 00024, Mathieu Pagé |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |