From: Mario Soto <mario_soto@venezolanadeavaluos.com>
To: pgsql-odbc@postgresql.org
Subject: Postgresql odbc column bytea problem
Date: Thu, 29 Jul 2004 13:02:37 -0400 (VET)
Message-ID: <48302.200.35.66.77.1091120557.squirrel@mail.venezolanadeavaluos.com> (raw)
Hellow please,
Hi i have a aplication in visual basic 6. it connect to postgresql via odbc
driver 7.03.02.00.
the connection string its
strCn =
"DRIVER={PostgreSQL};DATABASE=prueba;SERVER=192.0.0.10;PORT=5432;UID=test;PWD=test;READONLY=0;PROTOCOL=7.x;FAKEOIDINDEX=0;SHOWOIDCOLUMN=0;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS="
well i create a table:
CREATE TABLE "public"."crypto" (
"campo1" BYTEA
) WITH OIDS;
and insert the data:
stsql = " insert into crypto(campo1) values (
encrypt('prueba', 'fooz', 'bf'))"
and its ok
but when do:
stSQL = "select decrypt(campo1, 'fooz', 'bf') as valor From crypto"
the result return say: ??
please any idea thank
--
Ing. Mario Soto Cordones
Venezolana de Avaluos
www.venezolanadeavaluos.com
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: mario_soto@venezolanadeavaluos.com
Subject: Re: Postgresql odbc column bytea problem
In-Reply-To: <48302.200.35.66.77.1091120557.squirrel@mail.venezolanadeavaluos.com>
References: <48302.200.35.66.77.1091120557.squirrel@mail.venezolanadeavaluos.com>
* 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