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 879C3D1B462 for ; Thu, 29 Jul 2004 14:08:02 -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 64238-01 for ; Thu, 29 Jul 2004 17:08:00 +0000 (GMT) Received: from localhost.localdomain (unknown [200.35.66.77]) by svr1.postgresql.org (Postfix) with ESMTP id C35E1D1B344 for ; Thu, 29 Jul 2004 14:07:57 -0300 (ADT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id i6TH2kKg028728 for ; Thu, 29 Jul 2004 13:02:46 -0400 Received: (from apache@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id i6TH2bjQ028723; Thu, 29 Jul 2004 13:02:37 -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 13:02:37 -0400 (VET) Message-ID: <48302.200.35.66.77.1091120557.squirrel@mail.venezolanadeavaluos.com> Date: Thu, 29 Jul 2004 13:02:37 -0400 (VET) Subject: 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.8 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50, X_PRIORITY_HIGH X-Spam-Level: X-Archive-Number: 200407/167 X-Sequence-Number: 4300 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