Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2307

Cannot query using any type other than dynamic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0.0
    • 3.0.0-beta.4
    • library
    • None
    • 1

    Description

      Calls to ICluster.QueryAsync<T> will always fail unless T is "dynamic".

      System.InvalidCastException : Unable to cast object of type 'Couchbase.Query.StreamingQueryResult`1[System.Object]' to type 'Couchbase.Query.IQueryResult`1[Couchbase.IntegrationTests.Services.Views.Beer]'.
      at Couchbase.Cluster.QueryAsync[T](String statement, QueryOptions options) in C:\Users\bburnett\Source\Repos\couchbase-net-client\src\Couchbase\Cluster.cs:line 186
      at Couchbase.IntegrationTests.Services.Query.QueryTests.Test_Query() in C:\Users\bburnett\Source\Repos\couchbase-net-client\tests\Couchbase.IntegrationTests\Services\Query\QueryTests.cs:line 27

      Attachments

        For Gerrit Dashboard: NCBC-2307
        # Subject Branch Project Status CR V

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty