libpq (C++) - Insert binary data

Поиск
Список
Период
Сортировка
От GOO Creations
Тема libpq (C++) - Insert binary data
Дата
Msg-id 4CA4AC0A.4030408@gmail.com
обсуждение исходный текст
Ответы Re: libpq (C++) - Insert binary data  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Re: libpq (C++) - Insert binary data  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Re: libpq (C++) - Insert binary data  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
  Hi there,

I'm sitting for days now, and I can't get this to work:

I want to insert binary data (bytea) into my postgres DB via the c++ libpq.

What I have is a char* (actually a QByteArray) and I want to insert it
into the DB and the retrieve it from there again.

I can't find any good examples or tutorials online, so can anyone help
me (or direct met to a tutorial) on how to insert binary data and
retrieve it again?

Thank you very much
Christoph

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [9.0] On temporary tables
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Re: libpq (C++) - Insert binary data