Skip to content
Advertisement

Tag: f#

F# Query Exception, “unrecognized method call value”

Q: What does the following exception mean? I’m attempting to translate a Pervasive SQL query to an F# query using SqlDataProvider with an ODBC connection, building up slowly bit by bit. I’m getting an exception with the following query with a somewhat cryptic exception. When the printfn statement is executed and the expression is actually evaluated, the exception is hit:

Why does orderBy in F# not result in an ORDER BY in SQL?

I’m currently working on a small project that uses USA county data. I have no problems ordering the data in a Seq.orderBy, but as there is a sortBy in the query expression I would expect the results to be sorted. This is not the case. Now, the above is what I’m executing, but my results end up looking like so:

Advertisement