Description
As an example, this method is being called:
await manager.CreateIndexAsync("beer-sample", "brewery_id", "brewery_id"); |
And this is the result:
Couchbase.Core.Exceptions.ParsingFailureException : syntax error - at - [3000]
|
at Couchbase.Query.QueryResultExtensions.ThrowExceptionOnError[T](IQueryResult`1 result, QueryErrorContext context) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryResultExtensions.cs:line 56
|
at Couchbase.Query.QueryClient.ExecuteQuery[T](QueryOptions options, ITypeSerializer serializer) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryClient.cs:line 204
|
at Couchbase.Query.QueryClient.QueryAsync[T](String statement, QueryOptions options) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryClient.cs:line 67
|
at Couchbase.Management.Query.QueryIndexManager.CreateIndexAsync(String bucketName, String indexName, IEnumerable`1 fields, CreateQueryIndexOptions options) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Management\Query\QueryIndexManger.cs:line 67
|
at Couchbase.Linq.IntegrationTests.N1QlTestBase.EnsureIndexExists(IBucket bucket, String indexName, String[] fields) in C:\Users\bburnett\source\repos\Linq2Couchbase\Src\Couchbase.Linq.IntegrationTests\N1QLTestBase.cs:line 18
|
at Couchbase.Linq.IntegrationTests.QueryTests.JoinTests_InnerJoin_IndexJoin() in C:\Users\bburnett\source\repos\Linq2Couchbase\Src\Couchbase.Linq.IntegrationTests\QueryTests.cs:line 788
|
at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
|
at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaitable)
|
at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
|
at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
|
at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
|
at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
|
at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
|
Likely cause: Not escaping the - character in the bucket name.