Postgresql persistence through YesSql throws exceptions
See original GitHub issueThe Same Problem as #257 When I was use YesSQL PostgresSQL Persistence
pg version: 9 and 10 with postgis asp.net core 3.1
Npgsql.PostgresException (0x80004005): 42883: 操作符不存在(operator does not exist): character varying = integer
at Npgsql.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|194_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 419
at YesSql.Store.ProduceAsync[T](WorkerQueryKey key, Func`2 work, Object[] args) in C:\projects\yessql-un1yf\src\YesSql.Core\Store.cs:line 355
at YesSql.Services.DefaultQuery.Query`1.ListImpl() in C:\projects\yessql-un1yf\src\YesSql.Core\Services\DefaultQuery.cs:line 1020
at Elsa.Persistence.YesSql.Services.YesSqlWorkflowInstanceStore.ListByBlockingActivityAsync(String activityType, String correlationId, CancellationToken cancellationToken)
at Elsa.Extensions.AsyncEnumerableExtensions.ToListAsync[T](Task`1 task)
at Elsa.Services.WorkflowInvoker.ResumeManyAsync(String activityType, Variables input, String correlationId, Func`2 activityStatePredicate, CancellationToken cancellationToken)
at Elsa.Services.WorkflowInvoker.TriggerAsync(String activityType, Variables input, String correlationId, Func`2 activityStatePredicate, CancellationToken cancellationToken)
at NetModular.Module.GeoCMS.Application.ResBindingService.ResBindingService.Submit(Guid id) in D:\Code\GeoCMS\src\Library\Application\ResBindingService\ResBindingService.cs:line 259
at lambda_method(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext)
Exception data:
Severity: 错误
SqlState: 42883
MessageText: 操作符不存在: character varying = integer
Hint: 没有匹配指定名称和参数类型的操作符. 您也许需要增加明确的类型转换.
Position: 296
File: parse_oper.c
Line: 726
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Handling exception in persistence
This below code shows how to handle exception in a database like PostgreSQL . The key is to split your queries into transactions...
Read more >java - Is it possibile to retrieve org.postgresql.util. ...
I have a project which uses EJB3 and when the code throws an exception related to SQL, it sends a notification to the...
Read more >PostgreSQL: Documentation: 15: 43.9. Errors and Messages
EXCEPTION raises an error (which normally aborts the current transaction); the other levels only generate messages of different priority levels. Whether ...
Read more >PostgreSQL subtransactions, savepoints, and exception blocks
The PL/SQL block runs within an existing transaction and the exception block has nothing to do with the transaction control.
Read more >Jdbc timeout example. Under the hood, Spring Boot ...
Connection Timeout specifies the time limit (in seconds), within which the connection to the specified server must be made, otherwise an exception is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in Elsa 2.0!
Ahahahaha. That’s the best dev approach I’ve seen yet. I’m stealing that one for the day job 😁