oibo8x / subsonicproject

Automatically exported from code.google.com/p/subsonicproject
0 stars 0 forks source link

Mono incompatibility: IsDbNull is actually called IsDBNull #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to run a basic query under Mono, the attached stack trace is
generated. Reproduced on a query like "User.Delete(u => true)" with
SubSonic trunk and Mono 2.4.2.3.

The exception is "Unhandled Exception: System.InvalidOperationException: No
such method" in System.Linq.Expressions.Expression.TryGetMethod.

This is due to SubSonic referring to an "IsDbNull" method whereas its
actual name is "IsDBNull". Not sure whether Mono is wrongly case sensitive
or .NET is wrongly case INsensitive (probably the latter), but either way,
a simple fix makes SubSonic work on both.

Original issue reported on code.google.com by rstar...@gmail.com on 1 Nov 2009 at 12:33

Attachments:

GoogleCodeExporter commented 9 years ago
Patch attached. And sigh... can't edit the issue title or otherwise mark this as
patch-contained.

Original comment by rstar...@gmail.com on 1 Nov 2009 at 12:36