Apache OpenOffice (AOO) Bugzilla – Issue 29736
Count function broken in Query Designer when used with ODBC data sources
Last modified: 2006-05-31 14:29:06 UTC
Hi, Between version 1.1.0 and 1.1.1 the Count function in the Query Designer has ceased to work properly when used with an ODBC data source. I have tested this against an MS Access database which works properly under OO1.1.0 and fails under OO1.1.1. I have also tested this with the attached Excel spreadsheet. To duplicate this issue. Set up the attached spreadsheet as a data source Open the data source window and create a query In the query we want to Group the teachers in the first field and provide a count of the number of times a teachers name appears in the second field. Select Teacher for the first field and select Group as the function Select Teacher for the second field and select Count as the function Run the query. The error which occurs is: "[Microsoft][ODBC Excel Driver] You tried to execute a query that does not include the specified expression 'TEACHER' as part of an aggregate function." Testing this on another machine with OO1.1.0 installed shows that it works fine. A work around is to use SQL direct, but this really is not acceptable for end users. Obviously another work around is to reinstall OO1.1.0. Thanks Kelvin
Created attachment 15603 [details] Excel data source to show Count does not work in query
reassign to clu
CLU->kelvine: we definetly had a count problem in former versions, but this should be already fixed - could you please try your test in a current version (680m38): http://download.openoffice.org/680/index.html thx
Hi, Restested this under Win98/OO680m41 and it again works both for Excel and MS Access files. Whilst I will probably leave my clients at OO1.1.0 (unless a bug in that version hits them), is it likely this change will make it into the OO1.1.x stream. At this point this is not a concern to me. Just nice to know. Please close this issue. Thanks Kelvin
CLU->kelvine: the next is the 2.0 (the roadmap and the specification you can find on oo) - no secrets in this area :)
close
fs->msc: Just from reading the issue (I did not test anything myself): Since this is a regression between 1.1.0 and 1.1.1, I suggest we should fix this in 1.1.x line. What's your opinion on this?