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 41416D1B762 for ; Thu, 29 Jul 2004 12:35:38 -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 16319-02 for ; Thu, 29 Jul 2004 15:35:33 +0000 (GMT) Received: from adsl2.nocera.com (host78-80.pool8172.interbusiness.it [81.72.80.78]) by svr1.postgresql.org (Postfix) with ESMTP id 864D2D1B534 for ; Thu, 29 Jul 2004 12:35:31 -0300 (ADT) Received: from gespo.nocera.com ([192.168.157.6] helo=gespo ident=mail) by adsl2.nocera.com with esmtp (Exim 3.35 #1 (Debian)) id 1BqCuC-00084q-00 for ; Thu, 29 Jul 2004 17:33:17 +0200 Received: from pennino-a.nocera.com ([192.168.157.18] helo=pennino-a) by gespo with esmtp (Exim 3.35 #1 (Debian)) id 1BqCu9-0007hT-00 for ; Thu, 29 Jul 2004 17:33:13 +0200 From: "Antonio Pennino" Organization: Nocera Informatica To: pgsql-odbc@postgresql.org Date: Thu, 29 Jul 2004 17:33:13 +0200 MIME-Version: 1.0 Subject: Re: problem with CVS version Message-ID: <410934D9.3145.1BC587D@localhost> In-reply-to: X-mailer: Pegasus Mail for Windows (4.21b) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/164 X-Sequence-Number: 4297 Subject: RE: [ODBC] problem with CVS version Date sent: Thu, 29 Jul 2004 08:46:02 +0100 From: "Dave Page" To: "Antonio Pennino" , > Yes, I think it is the DM. the solution *should* be the SQLSetConnectAttr(). No, it not work... my code is this: _______________________________________________________________ long numero = SQL_AA_TRUE; int valore = 0; short shval = 0; long native = 0; SQLRETURN r = 0; int n = 0; char state[8] ; memset(state,0,sizeof(state)); char text[99] ; memset( text,0,sizeof(text)); /**/ r = SQLSetConnectAttr(hdbc,SQL_ATTR_ANSI_APP, // <<-! (SQLPOINTER)&numero, valore); if (r) { r = SQLGetDiagRec(SQL_HANDLE_DBC,hdbc,1 , (unsigned char *) state, &native, (unsigned char *) text, sizeof(text),&shval); } _______________________________________________________________ The result are: a) the SQLSetConnectAttr() return -1 b) the SQLGetDiagRec() return: . state = "S1092" . text = "[...][...] Option type out of range" Identical result i have with ms-access, perhaps are wrong the arguments? I have take the idea from here: http://publib.boulder.ibm.com/infocenter/db2v8luw/ index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0008616.htm ============================================ Antonio Pennino Nocera Informatica s.r.l. telefono: 035/4219033 telefax : 035/4219050 e-mail : a.pennino@nocerainformatica.net ============================================