Bug 14362 - LINQ Sum() not working?
Summary: LINQ Sum() not working?
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.4.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-08-31 12:24 UTC by Neal
Modified: 2013-09-04 07:42 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Neal 2013-08-31 12:24:35 UTC

I'm using sqlite-net (latest on github) and I'm having a problem with the Sum() function.  The following statement does NOT return the Sum() but if I change it to Count() then it does work.  

return  (from s in SQLDatabase.Main.Table<TimeCalcTable>()
                        where s.LogID == LogID
                        select s.Duration).Sum ();

Duration is a type "float" in sqlite as confirmed using a sqlite browser app

I'm using Xam.IOS 6.4.3 in Xam Studio 4.0.12
Comment 1 Neal 2013-09-04 07:42:40 UTC
I believe this is related to case 14407 and is a SQLite issue