Postgresql odbc coulumn bytea problem - Mailing list pgsql-odbc

From Mario Soto
Subject Postgresql odbc coulumn bytea problem
Date
Msg-id 34350.200.35.66.77.1091043550.squirrel@mail.venezolanadeavaluos.com
Whole thread Raw
List pgsql-odbc
Hi i hace a apps in visual basic. 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 this: ??

please any idea thank


--
Ing. Mario Soto Cordones
 Venezolana de Avaluos

www.venezolanadeavaluos.com





pgsql-odbc by date:

Previous
From: "Antonio Pennino"
Date:
Subject: Re: problem with CVS version
Next
From: "Mark Dexter"
Date:
Subject: Re: Updatable Cursors, CTID, and Views