X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3096DD1B174 for ; Thu, 29 Jul 2004 17:26:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50669-07 for ; Thu, 29 Jul 2004 20:25:52 +0000 (GMT) Received: from localhost.localdomain (unknown [200.35.66.77]) by svr1.postgresql.org (Postfix) with ESMTP id 80B60D1B215 for ; Thu, 29 Jul 2004 17:25:48 -0300 (ADT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id i6TKKhrp003635 for ; Thu, 29 Jul 2004 16:20:43 -0400 Received: (from apache@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id i6TKKgtT003632; Thu, 29 Jul 2004 16:20:42 -0400 X-Authentication-Warning: localhost.localdomain: apache set sender to mario_soto@venezolanadeavaluos.com using -f Received: from 200.35.66.77 (proxying for 192.168.0.89) (SquirrelMail authenticated user mario_soto) by mail.venezolanadeavaluos.com with HTTP; Thu, 29 Jul 2004 16:20:42 -0400 (VET) Message-ID: <33492.200.35.66.77.1091132442.squirrel@mail.venezolanadeavaluos.com> Date: Thu, 29 Jul 2004 16:20:42 -0400 (VET) Subject: please help me with Postgresql odbc column bytea problem From: "Mario Soto" To: X-Priority: 1 Importance: High X-Mailer: SquirrelMail (version 1.2.10) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=X_PRIORITY_HIGH X-Spam-Level: X-Archive-Number: 200407/169 X-Sequence-Number: 4302 Hellow please, 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 my problem it is 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 ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly