pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Padgaonkar <amit@nsat.co.jp>
To: pgsql-interfaces@postgresql.org
Subject: Cant load pgtclsh library into application
Date: Tue, 27 Nov 2001 16:10:47 +0900
Message-ID: <003801c17712$a37c17e0$e020200a@netone.co.jp> (raw)
References: <3BFABB2C.3020307@home.com>
	<20011121122555.B21102@quartz.newn.cam.ac.uk>

Hi Guys,
            I have just begun coding in tcl/tk and hence sorry for this
simple question.
            I am using tcl8.3 / tk8.3  and postgreSQL 7.3 . I am not able to
load pgtclsh library into to my TK application for giving it backend
support.
            Can you please suggest me how to proceed?

Thanks,
           Amit
----- Original Message -----
From: "Patrick Welche" <prlw1@newn.cam.ac.uk>
To: "Joe Conway" <joseph.conway@home.com>
Cc: <pgsql-interfaces@postgresql.org>
Sent: Wednesday, November 21, 2001 9:25 PM
Subject: Re: [INTERFACES] [PATCHES] PQescapeBytea documentation patch


> On Tue, Nov 20, 2001 at 12:21:00PM -0800, Joe Conway wrote:
> > Here's a patch adding documentation for the PQescapeBytea function to
> > libpq.sgml
> ...
> +    <function>PQescapeBytea</function>
> +    Escapes a binary string (bytea type) for use within an SQL query.
> +    <synopsis>
> +     unsigned char *PQescapeBytea(unsigned char *from,
> +                                          size_t from_length,
> +                                          size_t *to_length);
>
>
> This makes me wonder: should libpq contain a function to do the opposite
> too? eg.
>
> string=GetValue(from a bytea type column)
> PQunescapeBytea(string, some buffer, buffer's size)
>
> - or is there already another way of doing it?
>
> It seems to me that anyone using bytea with libpq will end up having
> to reinvent this wheel. (Something worthy of being knocked up in my
> Copious Free Time (tm))
>
> Cheers,
>
> Patrick
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




view thread (3+ messages)  latest in thread

Message-ID: <003801c17712$a37c17e0$e020200a@netone.co.jp>
Permalink:  ../003801c17712$a37c17e0$e020200a@netone.co.jp/
Also on:    postgresql.org/message-id/003801c17712$a37c17e0$e020200a@netone.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: amit@nsat.co.jp, pgsql-interfaces@postgresql.org
  Subject: Re: Cant load pgtclsh library into application
  In-Reply-To: <003801c17712$a37c17e0$e020200a@netone.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox