ECPG bug: PRAPARE FOR - Mailing list pgsql-bugs

From 1250kv
Subject ECPG bug: PRAPARE FOR
Date
Msg-id CA+4qtLett6CMxojrwn+yQq7qmN8SMOM3eZQ8yQG9D5tCuF-vKw@mail.gmail.com
Whole thread Raw
Responses Re: ECPG bug: PRAPARE FOR  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
Hello
I have code:

void main()
{
  char *foo = "CALL "My_Proc"(?)";
  EXEC SQL char *stmt = foo;
  EXEC SQL PREPARE prep_stmt FROM :stmt;

  EXEC SQL char *stmt2 = "CALL \x22OMy_Proc\x22(?)";
  EXEC SQL PREPARE prep_stmt2 FROM :stmt2;

  EXEC SQL PREPARE prep_stmt3 FROM "CALL "My_Proc"(?)";
}

ecpg --version
ecpg (PostgreSQL) 13.0 (Ubuntu 13.0-1.pgdg20.04+1)

ecpg sample.pgc -o sample.c
sample.pgc:10: ERROR: syntax error at or near "My_Proc"


pgsql-bugs by date:

Previous
From: 1250kv
Date:
Subject: ECPG bug: "unterminated quoted identifier"
Next
From: Peter Eisentraut
Date:
Subject: Re: invalid alloc size error possible in shm_mq