Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6sAC-004jlP-1Y for pgsql-odbc@arkaria.postgresql.org; Sun, 29 Mar 2026 15:34:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w6sAA-00Gd0V-32 for pgsql-odbc@arkaria.postgresql.org; Sun, 29 Mar 2026 15:34:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6sAA-00Gd0N-1z for pgsql-odbc@lists.postgresql.org; Sun, 29 Mar 2026 15:34:55 +0000 Received: from mail-yx1-xb135.google.com ([2607:f8b0:4864:20::b135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w6sA8-00000001qFN-1dgV for pgsql-odbc@postgresql.org; Sun, 29 Mar 2026 15:34:54 +0000 Received: by mail-yx1-xb135.google.com with SMTP id 956f58d0204a3-6501c9903edso9280d50.1 for ; Sun, 29 Mar 2026 08:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774798490; cv=none; d=google.com; s=arc-20240605; b=QNlNnuTp6V7I8wIaAKgsaJpi8psDMRU3rF16NOd/gCtewMtjc7hkmU9im1IDLaEMoF sQ7wwhTGuL6J8+FzSP046cjgD5hP6Smvu4J5Jr/UgLEWiQzcDGEi2WKagHRJdlTLIGog DdsOZ7H1rjmEl0r/6H5Sw5x/NAW+mctp8UBoPnS9JeXKhjbvhdttRyLoI3wSu0fwpX3Z wOSJqVWEtY+cHTfX0s1GL7Vq2VB8W+R3Q1D7Sl02awAXbQPqJCGWDoUdSsgIncjp9XOI b/RULS8hAKk051BplxzDM658ceKT/KyUHI9y+U0aPHjtTVEblB0O4yzsbna90+TOihXc VBuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=HpkJx8IyuohDNr6zig31jpQu3PIgM4OFBDoCOXDF6T4=; fh=gQ1ypmDyWf3nH1gznU9Ug0JOCBZ+shqszu66x8185Qc=; b=Ew5DEYMMZl+gf/79jXy783lrrbHHSUhL0yPff8aRtAI3DaovCj/6ltoFjmvx9qRhCW jxj90AXOu05ZSlhOEI7V7jw/WeoxHLYH6pz0QHXXSVIY2PbzFXFOA1s/xygJWKSM8vdg VDsdRYLsoAbp2ucPYRrdjy/miLjziyHBgDdV7J/BHHi0wBh7mG+TS6e6A3csJml/XZrl lSisQ1qpAsSrboi+WGQknK/Gzt4l6Dn/p4Reg3qSBbL25ZIPhbFTOIJ+oGayugwrglAw OWz/fKtL7oO/iZx6lrwKK/gGDxNJBoUA3BlJQDO4hbbYm7spQK4rMi6vIpAEhxUa5PRQ gctg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774798490; x=1775403290; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HpkJx8IyuohDNr6zig31jpQu3PIgM4OFBDoCOXDF6T4=; b=Gfg/VdaXKyuxz6gvISBqsD4lL7GKgGFWSA9uXMeP4L5kboA+BYDsApi9JwQBQck1NI BJ63ojOoxV1czTpbL/Yiu8beIuY2Ew8USj8QOzeDNsaTTekqxkXr7UCn27q6v8uxXpba leDlaCHH5WPc+pRRBz2DQ8txbMKyTlDCx6+TVJjJYfEM+DViTbMXnKnlkcHP9ZALSytz jXFfSLBuAXiR+wcFLdqZGH6yKsip/i1HcYvLKQJHoIMajPXRgkNfMJObZ7bPDFRNXCqX 409DWJ2dSwOOxj4OFqFJijumI2+t5EzNXHQC0RpR+oVOpT68SdCc9jJG5G8nI26AUmsX GUoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774798490; x=1775403290; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HpkJx8IyuohDNr6zig31jpQu3PIgM4OFBDoCOXDF6T4=; b=N76d2fSqHs/rVl2Wj5HHAmmoc6qj0bpyvHOfsW5wLLtLyY6wOGa1wVuxXDKIl8uWYD YgdEoY6pSVDw/SEWb2YAwQfGGt9swvnQ/AjDq6nm15mTeOeruqdzaoiUVyzuMR0xsDe2 5EmOV6D62ZhN3WK5ijIc+CXdi5BxPF3a6f+FSUIbbpoSw5AYSJkdG0SM1BDbDPk5/YaU RVRKZzpWtwUisJUDp2m1g4aFiHOCgDQRQSa66hPWEpSdFEA6Vh/5FkZFBRUs4zJ+7CPR X3dttCk1L5tpTvH34LrDFX3GjUG5bvNDe+zkEu6GuxjGzMv5E95Bm8PxgvI/9eaetk8E x3sQ== X-Gm-Message-State: AOJu0YwNgLcJUKOQ8JCgvZf8yfFvnmHoPp8YVAqNBioYAZtwXUj4uK+K DfqPu6MiZQN2501EqMmQdaNm43Q+XuwQiAHptk2twHsuRWhQx62g6cr9YnokvnvLgJ3affDEjkv m5MVlTTV/cODk0ehjAUdmsdRsgCoBtn8= X-Gm-Gg: ATEYQzyJOHDyIOUqz0CJ27pHLj+5fh/g1oq4+7Hg5hOayo/niCvzgKIBR67EFJNCj7g qcjyNfbE4OZjFu9211u14SEtbk3mcyDZqE4uGkTjyC2HBcHMxkm/BemZ1MkXMZyVk7rXnZK5Azd 6/ZeMQXnw37n4Yyqg1vQilmDaeTH2i4/0dKCmtIcF8y0oSUYWA2HPbd8Ggbc89yavL53lB5iCOB q6pq9ermHNr9cXgKjz4GgDg4XbxnpnzbQ9AVW9XZBUaxglEj0IOGUmXfNppb/1Um8Snbz/aIfad GqDGlOt0PnKIgQqichdwUMijuI4a8Qf49EYHlNl+shVGmfsy7iLmZoU8dz69sDuNnMVh6Ze8 X-Received: by 2002:a05:690c:6893:b0:79c:71d:fd6f with SMTP id 00721157ae682-79c071e00e5mr82081077b3.18.1774798490024; Sun, 29 Mar 2026 08:34:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sun, 29 Mar 2026 08:34:38 -0700 X-Gm-Features: AQROBzBYP3pEMP7QDFxoKT1k2xtneHtJpXSQ-LIwzO2tgJxhgq1050e9h9UcS9U Message-ID: Subject: Re: Included fields should not be a part of SQLPrimaryKey() To: Dave Cramer Cc: PostgreSQL ODBC list Content-Type: multipart/alternative; boundary="0000000000008bbfba064e2b79a4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008bbfba064e2b79a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Dave, On Sun, Mar 29, 2026 at 4:41=E2=80=AFAM Dave Cramer = wrote: > Hi Igor, > > Are you saying that the rest of the columns in the table should not be > returned ? > If I have PRIMARY KEY with INCLUDED clause, only PK fields should be returned. > What version of the ODBC driver are you using? > On Windows I=E2=80=99m using the latest driver. On Linux slightly older. Thank you. > Dave Cramer > > > On Sat, 28 Mar 2026 at 23:17, Igor Korot wrote: > >> Hi, list, >> >> In my experience with PostgreSQL on either Linux or Windows >> the included fields are returned as part of the call to SQLPrimaryKey. >> >> I already sent an E-mail to this list about it but seeing that there is >> no response, I am trying again. >> >> Thank you. >> >> >> --0000000000008bbfba064e2b79a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Dave,


On Sun, Mar 29, 2026 at 4:41=E2=80=AFAM Dave Cramer <davecramer@gmail.com> wrote:
Hi Igor,

<= /div>
Are you saying that the rest of the columns in=C2=A0the table sho= uld not be returned ?

<= div dir=3D"auto">If I have PRIMARY KEY with INCLUDED clause, only PK fields= should be returned.


What version of the ODBC driver are you using?

On Window= s I=E2=80=99m using the latest driver.
On Linux slig= htly older.

Thank you.


= Dave Cramer


On Sat, 28 Mar 2026 at 23:17, Igor Korot <ikorot01@gmail.com= > wrote:
Hi, = list,

In my experience with PostgreSQL on either Linux or Windows
the included fields are returned as part of the call to SQLPrimaryKey.

I already sent an E-mail to this list about it but seeing that there is
no response, I am trying again.

Thank you.


--0000000000008bbfba064e2b79a4--