ravendb/ravendb — pull request #452 by johannesg (2012-01-24 21:29:41+00:00)
Title: Add failing test for Map/Reduce + transform with included decimal value

If I have a Map/Reduce index with a transform and the result contains a decimal value, then I get the following exception:

```
System.InvalidOperationException: The transform results function failed.
Doc '', Error: Cannot convert type 'string' to 'decimal'
```

```
at Raven.Database.DocumentDatabase.<>c__DisplayClass72.b__6a(IStorageActionsAccessor actions) in DocumentDatabase.cs: line 769
at Raven.Storage.Managed.TransactionalStorage.Batch(Action`1 action) in TransactionalStorage.cs: line 118
at Raven.Database.DocumentDatabase.Query(String index, IndexQuery query) in DocumentDatabase.cs: line 707
at Raven.Client.Embedded.EmbeddedDatabaseCommands.Query(String index, IndexQuery query, String[] includes) in EmbeddedDatabaseCommands.cs: line 310
at Raven.Client.Document.AbstractDocumentQuery`2.ExecuteActualQuery() in AbstractDocumentQuery.cs: line 434
at Raven.Client.Document.AbstractDocumentQuery`2.InitSync() in AbstractDocumentQuery.cs: line 423
at Raven.Client.Document.AbstractDocumentQuery`2.GetEnumerator() in AbstractDocumentQuery.cs: line 553
at System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source)
at Raven.Client.Linq.RavenQueryProviderProcessor`1.GetQueryResult(IDocumentQuery`1 finalQuery) in RavenQueryProviderProcessor.cs: line 1206
at Raven.Client.Linq.RavenQueryProviderProcessor`1.ExecuteQuery() in RavenQueryProviderProcessor.cs: line 1148
at Raven.Client.Linq.RavenQueryProviderProcessor`1.Execute(Expression expression) in RavenQueryProviderProcessor.cs: line 1131
at Raven.Client.Linq.RavenQueryProvider`1.Execute(Expression expression) in RavenQueryProvider.cs: line 130
at Raven.Client.Linq.RavenQueryProvider`1.System.Linq.IQueryProvider.Execute(Expression expression) in RavenQueryProvider.cs: line 176
at System.Linq.Queryable.SingleOrDefault(IQueryable`1 source)
at Raven.Tests.Bugs.TransformResults.ComplexValuesFromTransformResults.DecimalValues() in ComplexValuesFromTransformResults.cs: line 133
```