PQescapeBytea v 7.2.3 BUG?

Поиск
Список
Период
Сортировка
От Reid Thompson
Тема PQescapeBytea v 7.2.3 BUG?
Дата
Msg-id 3DCFAF9C.6010400@ateb.com
обсуждение исходный текст
Ответы Re: PQescapeBytea v 7.2.3 BUG?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
should    sprintf(buffer, "%c", 0x5C);    readsz = 1;    buffer2Ptr =(unsigned char *) PQescapeBytea(buffer, readsz,
&esclen);   for (ctr = 0; ctr < strlen(buffer2Ptr); ctr++)    {        printf("char[%d] is [%c]\n", ctr,
buffer2Ptr[ctr]);   }    printf("esclen is [%d]\n", esclen);    printf("buffer2Ptr is [%s]\n", buffer2Ptr); 
 


result in the following output?

char[0] is [\]
char[1] is [\]
char[2] is [\]
char[3] is [\]
esclen is [5]
buffer2Ptr is [\\\\]

OR should it result in
char[0] is [\]
char[1] is [\]
esclen is [3]
buffer2Ptr is [\\]



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Iavor Raytchev"
Дата:
Сообщение: Re: The database system is in recovery mode
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PQescapeBytea v 7.2.3 BUG?