Re: ECPG bug: "unterminated quoted identifier"
От | 1250kv |
---|---|
Тема | Re: ECPG bug: "unterminated quoted identifier" |
Дата | |
Msg-id | CA+4qtLcMz19fc_8UreE+k1uM_-Zh-GOV3_r2vTvJHn7uPaeL6A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: ECPG bug: "unterminated quoted identifier" ("David G. Johnston" <david.g.johnston@gmail.com>) |
Список | pgsql-bugs |
I have expected that host-variable bar the variable will be assigned the value 'aaa"bbb'
similarly if this value were obtained from a query:
#include <stdio.h>
int main()
{
EXEC SQL char *foo;
foo = (char *) malloc(5);
EXEC SQL SELECT 'aaa"bbb' INTO :foo;
printf("%s\n", foo);
return 0;
}
Result:
aaa"bbb
similarly if this value were obtained from a query:
#include <stdio.h>
int main()
{
EXEC SQL char *foo;
foo = (char *) malloc(5);
EXEC SQL SELECT 'aaa"bbb' INTO :foo;
printf("%s\n", foo);
return 0;
}
Result:
aaa"bbb
On Tue, Oct 20, 2020 at 7:57 PM David G. Johnston <david.g.johnston@gmail.com> wrote:
On Tue, Oct 20, 2020 at 9:47 AM 1250kv <1250kv@gmail.com> wrote:HelloI have code:void main()
{
char *foo = "aaa\"bbb";
EXEC SQL char *bar = "aaa\"bbb";
}ecpg --version
ecpg (PostgreSQL) 13.0 (Ubuntu 13.0-1.pgdg20.04+1)ecpg sample.pgc -o 1.csample .pgc:10: ERROR: unterminated quoted identifierGeneral usage questions regarding PostgreSQL and ECPG should be sent to the -general list.What are you expecting to be the result of that?David J.
В списке pgsql-bugs по дате отправления: