Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNwmr-0000h5-M3 for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Sep 2021 12:34:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNwmq-0002Rr-GS for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Sep 2021 12:34:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNwmq-0002Ri-9C for pgsql-odbc@lists.postgresql.org; Wed, 08 Sep 2021 12:34:44 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mNwmo-0005ln-U2 for pgsql-odbc@lists.postgresql.org; Wed, 08 Sep 2021 12:34:43 +0000 Received: by mail-lf1-x12a.google.com with SMTP id l10so4616279lfg.4 for ; Wed, 08 Sep 2021 05:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=OP5QyxVbuDnmfYiE6Ard0ns+rv7zskWZvhjkIZM8XHk=; b=hegkgP6qTvRytF8V9xKOXBaCDWqMLVEid+A9hM36OOVc2J/vuaU6GVhHGbccJhuIng PUNqPxEIomBsJAmptzB8Sve8jtYKYck6glaP9GpSXpe+thLLFjuOggfTgIY6OZPDig+g g99WF0ANkjVS+nQICIhQCzxjaLhOSoZX3ckzG7WvWT68QKs3rtibvLsh7zPKdHGiNBq0 XxF3rIlsEs8+lm9A95YgiFtn5C63lNnOTiHmF2kN+k/6mGkY9Ba2j5onkNBmAOjKyIrZ 91ZOGiZLYkFIV+/J8zRmx8WPJQ0LExpqtQOnCy/ZYjs7zJYsmOL4U8W8rlB2xToPQctt tzKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OP5QyxVbuDnmfYiE6Ard0ns+rv7zskWZvhjkIZM8XHk=; b=e9Z6QcArgj0U20SaE0F1xriPZGc4+FV749s2riDdcQVd4QW24TcyGS4tNvF68wkpkG 0f3ohkAMiXYXtZ7nyUM1KwD5RT2HQj+G22P6BP1ysHBOMmZJxEtvxZbKj3H/hJTxbpRt q9aFRznWezMWCRPT62iKNllHn501JdPWfws1qugs7RtZ6aXcLRrM6jsFNnpsZKep9TED VoXAo3L+pIEugrUk4DKu/gRetFmfLOwhCphAaptbN3TgjQyuwKLT8o2Tl9lYzp/Nctsg AotASgMb+s9vS+GlwVc+/AQGfdMERya/o5SAdEP5XE5ZLfpNF4OtIZBmb4xkgAJd3Tlz D9CQ== X-Gm-Message-State: AOAM532qAEspmKVrCbgJWSxpgSXflOf9OCfrwxJ41tfByilZO9FpVTdd FctlWevgXibJ89csLYiy/Ruz25NJP3YMl8MUw0l6Q0ldqCw= X-Google-Smtp-Source: ABdhPJzETTxYxd1YgZfbQze2oVHXRWu9XwpCj2rqcoSd66sj53cSjlmvOfoPkMar5tf7O3pHzKSLDiJvAd2UYb11djM= X-Received: by 2002:ac2:43c3:: with SMTP id u3mr2428632lfl.433.1631104480037; Wed, 08 Sep 2021 05:34:40 -0700 (PDT) MIME-Version: 1.0 From: Andreas Beier Date: Wed, 8 Sep 2021 14:34:28 +0200 Message-ID: Subject: Excel ODBC query loosing parameter when returning the query result directly to a pivot table. To: pgsql-odbc@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001fd07b05cb7b1bf4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001fd07b05cb7b1bf4 Content-Type: text/plain; charset="UTF-8" Hi everyone, I am using postgres odbc for quite a while within within excel using parameters (i.e. using ?s within the query). When defining odbc queries in Excel I select "PivotTable Report" instead of "Table", thus creating a pivot table directly without having the raw data in an extra sheet. Once created, I can alter the query and define parameter (s)linking to an excel cell. Everything works well until I (save and) reopen the file and try to update: Than my excel crashs. :( I did find out, that the parameter definition I defined before is empty when opening the file. When I do redefine it, everthing works well again until I (save and) reopen the file and try to update: Than my excel crashs. :( So it's very reproduceable. I am using the 32bit driver, latest version and I am running Excel 2010 and 2016. Any idea whats wrong here? Thanks Andreas --0000000000001fd07b05cb7b1bf4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone,

I am using post= gres odbc for quite a while within within excel using parameters (i.e. usin= g ?s within the query).

When defining o= dbc queries in Excel I select "PivotTable Report" instead of &quo= t;Table", thus creating a pivot table directly without having the raw = data in an extra sheet.

Once created, I can a= lter the query and define parameter (s)linking to an excel cell.
=

Everything works well until I (save and) reopen the fil= e and try to update: Than my excel crashs. :(

= I did find out, that the parameter definition I defined before is empty whe= n opening the file. When I do redefine it, everthing works well again until= I (save and) reopen the file and try to update: Than my excel crashs. :(

So it's very reproduceable.
I am using the 32bit driver, latest version and I am running Ex= cel 2010 and 2016.

Any idea whats wrong here?

Thanks
Andreas

--0000000000001fd07b05cb7b1bf4--