X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D761ED1B4E4 for ; Fri, 7 Nov 2003 14:31:28 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 21876-09 for ; Fri, 7 Nov 2003 10:31:00 -0400 (AST) Received: from web20808.mail.yahoo.com (web20808.mail.yahoo.com [216.136.226.197]) by svr1.postgresql.org (Postfix) with SMTP id CEA46D1B536 for ; Fri, 7 Nov 2003 10:30:56 -0400 (AST) Message-ID: <20031107143100.33196.qmail@web20808.mail.yahoo.com> Received: from [208.13.35.65] by web20808.mail.yahoo.com via HTTP; Fri, 07 Nov 2003 06:31:00 PST Date: Fri, 7 Nov 2003 06:31:00 -0800 (PST) From: Jeff Eckermann Subject: Re: Access, pass-through queries and isolation level To: Philippe Lang , pgsql-odbc@postgresql.org In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420AF737@poweredge.attiksystem.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/44 X-Sequence-Number: 3446 On further thought, you may also want to debug your Access code to make sure that the ReturnsRecords property is not being reset somehow. --- Philippe Lang wrote: > I'm sending the two statements in one single > pass-through query. Both statements are separated by > a semicolon. I even tried to remove the carridge > return at the end of the first statement, but of > course, it has no effect. > > Postgres handles the sql commands fine. But I'm not > able to get the return value from > "func_test_insert", as soon as I add an sql command > BEFORE the function call. BUT, if I add this SQL > command AFTER the function call, it's OK. > Apparently, the first statement is considered to be > the one that returns data. All others are executed, > but their return value is discarded. I guess this is > an Access issue, more than an ODBC one, right? > > -----Message d'origine----- > De : Jeff Eckermann > [mailto:jeff_eckermann@yahoo.com] > Envoyé : jeudi, 6. novembre 2003 16:35 > À : Philippe Lang; pgsql-odbc@postgresql.org > Objet : Re: [ODBC] Access, pass-through queries and > isolation level > > > Now if I want to change the isolation level > before: > > > > set transaction isolation level serializable; > > select * from public."func_test_insert"(); > > > > ... I cannot get the inserted id back in Access, > > from the pass-through query. Apprently, since the > > first query does not return any row, Access > > considers the whole query does not return > anything. > > Are you sending the two statements as separate > queries > in your code? If so, try sending both as a single > query, i.e. one string, with a semicolon separating > the two. Access doesn't know you are sending two > statements in one, and Postgres will handle them > just fine. > > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree