From: Markus Mottl <markus.mottl@gmail.com>
To: Kenneth Sullivan <sullivan@mayachitra.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] binary data from Postgresql with cursors
Date: Tue, 24 Jan 2006 16:23:51 -0500 [thread overview]
Message-ID: <f8560b80601241323q2d10555ap5392b5bd93a3bd28@mail.gmail.com> (raw)
In-Reply-To: <EB20465D-0604-4591-B376-A690B65D625D@mayachitra.com>
On 1/24/06, Kenneth Sullivan <sullivan@mayachitra.com> wrote:
> Hi, I'm trying to pull binary data out of a postgresql database with
> the Postgresql module. In postgresql, CURSORs have a binary option,
> which skips the usual conversion to text (which must be converted
> back). However the module methods for getting data from a result,
> e.g. get_tuple, getvalue, all return string types, with no
> straightforward way to get ints and floats. Has anyone else ran into
> this?
Ok, I've just uploaded an improved version, which can also handle
binary data in "getvalue" (untested!). If you want to convert the
binary data directly in C, i.e. without going through OCaml-strings,
you will have to extend the C-interface. I'm too busy right now to do
it myself, but I'll gladly accept patches :-)
If you send a patch, please make sure that error handling is
implemented, too. - Thanks!
Regards,
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
prev parent reply other threads:[~2006-01-24 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-24 18:28 Kenneth Sullivan
2006-01-24 21:23 ` Markus Mottl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8560b80601241323q2d10555ap5392b5bd93a3bd28@mail.gmail.com \
--to=markus.mottl@gmail.com \
--cc=caml-list@inria.fr \
--cc=sullivan@mayachitra.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox