Evolve icon indicating copy to clipboard operation
Evolve copied to clipboard

PostgreSQL "syntax error at or near "LIKE" at character 16"

Open jyri-aganitsh opened this issue 4 years ago • 6 comments

Evolve 3.0.0 Npsql 5.0.4

In db log:

ERROR:  syntax error at or near "LIKE" at character 16
STATEMENT:  SHOW VARIABLES LIKE '%version%'

jyri-aganitsh avatar Apr 14 '21 12:04 jyri-aganitsh

It is normal. It is the way Evolve knows what kind of database it is currently running against. Details here if you're interrested

lecaillon avatar Apr 14 '21 12:04 lecaillon

Can't it be done without the exception?

xperiandri avatar Sep 12 '22 16:09 xperiandri

Yes, you can use the last alpha version and the new optional parmeter in the constructor called dbms

lecaillon avatar Sep 12 '22 19:09 lecaillon

Hi @lecaillon. This issue is still reproduced with 3.1.0-alpha7 for us. The error message is the same, as below

Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "LIKE"

POSITION: 16
   at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|228_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
  Exception data:
    Severity: ERROR
    SqlState: 42601
    MessageText: syntax error at or near "LIKE"
    Position: 16
    File: scan.l
    Line: 1188
    Routine: scanner_yyerror

andrii-berestov-lula avatar Nov 07 '22 21:11 andrii-berestov-lula

Yes, you can use the last alpha version and the new optional parmeter in the constructor called dbms

We still catch an exception. Were not you managed to fix that?

xperiandri avatar Mar 01 '23 18:03 xperiandri

yes. how do you instantiate Evolve ? Can you give me more insight please

lecaillon avatar Mar 01 '23 18:03 lecaillon