Обсуждение: howto escape my string

Поиск
Список
Период
Сортировка

howto escape my string

От
"Jean-Yves F. Barbier"
Дата:
Hi list,

I'm using Gambas to access a PG DB (only through views and functions)
and I can't find a way to escape my string to fit into a BYTEA field;
does anybody have an idea about this?

JY
--
Don't drop acid -- take it pass/fail.
        -- Seen in a Ladies' Room at Harvard

Re: howto escape my string

От
Brian Modra
Дата:
2009/11/24 Jean-Yves F. Barbier <12ukwn@gmail.com>:
> Hi list,
>
> I'm using Gambas to access a PG DB (only through views and functions)
> and I can't find a way to escape my string to fit into a BYTEA field;
> does anybody have an idea about this?

I can't help you with Gambas, but if you are asking how to escape a
string for bytea, its documented here:
http://www.postgresql.org/docs/8.4/interactive/datatype-binary.html

>
> JY
> --
> Don't drop acid -- take it pass/fail.
>                -- Seen in a Ladies' Room at Harvard
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
Brian Modra   Land line: +27 23 5411 462
Mobile: +27 79 69 77 082
5 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa
http://www.zwartberg.com/

Re: howto escape my string

От
"Jean-Yves F. Barbier"
Дата:
Brian Modra a écrit :

The PB comes from Gambas: I think I'm gonna throw the towel and back to Python
(too bad, boa is a real piece of shit compared to gambas GUI builder :(

> 2009/11/24 Jean-Yves F. Barbier <12ukwn@gmail.com>:
>> Hi list,
>>
>> I'm using Gambas to access a PG DB (only through views and functions)
>> and I can't find a way to escape my string to fit into a BYTEA field;
>> does anybody have an idea about this?
>
> I can't help you with Gambas, but if you are asking how to escape a
> string for bytea, its documented here:
> http://www.postgresql.org/docs/8.4/interactive/datatype-binary.html
>
>> JY
>> --
>> Don't drop acid -- take it pass/fail.
>>                -- Seen in a Ladies' Room at Harvard
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>>
>
>
>


--
Ankh if you love Isis.