X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8B1CB9DC97F for ; Mon, 2 Jan 2006 15:03:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77557-08 for ; Mon, 2 Jan 2006 15:03:54 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 7164F9DC93C for ; Mon, 2 Jan 2006 15:03:52 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id DFA121033DF0; Mon, 2 Jan 2006 19:03:53 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80011-06; Mon, 2 Jan 2006 15:03:52 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id B963C1033DEF; Mon, 2 Jan 2006 19:03:51 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000510 ] Access the rdoResultset´s column is NULL in the second access Content-type: text/plain; charset=UTF-8 Message-Id: <20060102190351.B963C1033DEF@pgfoundry.org> Date: Mon, 2 Jan 2006 19:03:51 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char C2 hex) in message header 'Subject': Subject: ...0 ] Access the rdoResultset\302\264s column is NU... X-Spam-Status: No, score=0.856 required=5 tests=[ALL_TRUSTED=-1.44, AWL=-1.614, NO_REAL_NAME=0.55, SUBJ_ILLEGAL_CHARS=3.36] X-Spam-Score: 0.856 X-Spam-Level: X-Archive-Number: 200601/7 X-Sequence-Number: 6822 Bugs item #1000510, was opened at 2005-12-27 16:20 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000510&group_id=1000125 Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Access the rdoResultset´s column is NULL in the second access Initial Comment: In VB's example: Private Sub QueryTest() Dim rdoQuery As rdoResultset Set rdoQuery = InjetDB.OpenResultset("SELECT A || B AS Test FROM pdTable") If not rdoQuery.EOF Then Debug.print(rdoQuery!Test) Debug.print(rdoQuery!Test) 'Error happen (Invalid use of NULL) End If End Sub ' rdoResultset is Microsoft Remote Data Object 2.0 ' Postgree 8.1 ' psqlodbc-8_01_0106 ---------------------------------------------------------------------- >Comment By: Ludek Finstrle (luf) Date: 2006-01-02 20:03 Message: User wrote: The original posting has a bad assumption. The problem is not the ODBC driver. When A or B is a NULL, then A || B concatenation returns NULL. The server returns NULL. Running the a sample from psql, or pgadmin will verify this. It is even clearer with a query like SELECT A,B,A||B as C from my_table; ---------------------------------------------------------------------- Comment By: Ludek Finstrle (luf) Date: 2005-12-27 20:12 Message: Could you send me compiled example as I have no VB? How is your pdTable filled? What result return psql client? Could you send me mylog output (enabled mylog under Global and DataSource button) too? If you don't create this bug as anonymous you can append this files to the bug report ... ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000510&group_id=1000125