Bug #2091
closedDbo query SELECT SUM(...) bug
0%
Description
Hi,
I found a bug with Wt Dbo that when a query selects a SUM (col) it sets weird values in boost::tuple<...> which is the result type of the query. I have only tried this with SUM and no other SQL functions.
The test case file is attached. The first query fetches normal data and the second query fetches weird data into the tuple.
Files
Updated by Saif Rehman about 11 years ago
- File DboTestSaif.C DboTestSaif.C added
Fixed a mistake in test file.
Another thing is that the problem does not occur in SQLite but in MySQL
Please modify my test case to connect to MySQL
Updated by Koen Deforche about 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.1
Updated by Koen Deforche about 11 years ago
- Assignee changed from Koen Deforche to Michael Vilsker
Michael:
Can you see what's going on, is this a problem in the MySQL backend?
Perhaps it has to do with the '*' appearing as a multiplication?
Saif:
What version of Boost are you using (we use a different query handling strategy for older vs newer versions of boost, which may be relevant).
Updated by Michael Vilsker about 11 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 11 years ago
- Status changed from Resolved to Closed