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 1w7jfY-005dw7-20 for pgsql-odbc@arkaria.postgresql.org; Wed, 01 Apr 2026 00:42:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7jfW-00E24E-1f for pgsql-odbc@arkaria.postgresql.org; Wed, 01 Apr 2026 00:42:50 +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 1w7jfW-00E246-0f for pgsql-odbc@lists.postgresql.org; Wed, 01 Apr 2026 00:42:50 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7jfT-00000002Gdq-2uoW for pgsql-odbc@postgresql.org; Wed, 01 Apr 2026 00:42:50 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-7a17bc5745eso3433297b3.1 for ; Tue, 31 Mar 2026 17:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775004166; cv=none; d=google.com; s=arc-20240605; b=Q8YZHkb8aWXTrSewxMJaf7C3nxj34+OTXWAozOP9rOzeu1nr6AUUkRd1vcumOC1sBw 0XoT502LvS0mLmFPtzNfMS1Z7rAcitmN0Ld/qQfa26t8nYuJR4B7Kf8fdsAOrNZsC55n TqU9SUr+oYo+TruUjKo0CpGUtBUSh24JED/nfDcLeoc3LJmjhJnr6utv1c5e34gJ6lZ0 /Txdq5RGS1ieLoVnpuUia95PnGX+rsRE/LQHhJ0jcbDFlXryrUh9kUTHE3obD/kREQzA mlnCMV79GSy0g/UsvVSHnngmXjEoV3wDk1uwfBukiE/Eh+n8/A3PKnoFYSX8YxFB9N7u N+0A== 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=rBXLNiZM47cBogoUzjNvEqjIAfOo1O+Otayu6j4DKrE=; fh=gQ1ypmDyWf3nH1gznU9Ug0JOCBZ+shqszu66x8185Qc=; b=VM/2ak29gHUb2VxBob1afgvk3MS+jI9ZLOK1L3VHcKkIWljNCui0weTSC05zaDa3en BpWq3FoDvg4+E/VR2cD99TKe4MjFJyG5HB/2eZZn9DyZqtvA/saf1sNYGO1C1HsUXLyq /ZWxyp7E3JvQ3ZQk/kBf5ydi05hSbRlyApZA1m9QaliK1UiootnNPM3/1UR/YQZiHGTd rK8S6y7DYfwf4nbfIcVJqe7QwmcxVZPWsBJTrRdwceiHD6Xjp/ca+KoSkBl8QUhf62tP LeuhwoRZzHJkDrJaRJDgXxmY4SeSp4USQowfudrkm/Sq+rcaigqZcboiyNrXSiAdSJwW jwfw==; 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=1775004166; x=1775608966; 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=rBXLNiZM47cBogoUzjNvEqjIAfOo1O+Otayu6j4DKrE=; b=XzwpbZA/7dnyC4Z0e886LeTbob8gVp/FacgmEFUwwBpQ9yKpk1ayjfKi1d+BTONlAj yat9QgqJvrwFHf6IG3BoNF2hB1dnmUsjtCsnuYkkHpj5EuInUsxSEZZyqcPOwBLWrx0F H/UjOLguSkWEWm3fpBA/BEhn9DYr6ODrB9VCDNGP0zkaLZ5Utzkjy2Z2gDYYNJsdtzGw E8wnXKiPiBCTJAGa/cV59TmHSrnXdAbVQ0lhDpR+QCdGMYKLMWjQS0ym4ZtEiMuj7R8m SFRUwMOnwB7cT87nVapcFf2hWmudqWgesGmZ0trnkEhpzScPr7v0IkrgwPgzXs/DRxKd 0ddw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775004166; x=1775608966; 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=rBXLNiZM47cBogoUzjNvEqjIAfOo1O+Otayu6j4DKrE=; b=g6gnouTu/IUXK3UW09e0MQABtP/8DlWyfkFVyBBQM6l7D1yMaYQHxLND6JPUWYA6SY BJFiSA1AGV6vRs6EGRwNQ044JZb5+pLUAmeQSnpdZVyI8urjlLTmgj3n7NhOHTTyf/AO DWevkBOLvrmXhA+pZOpbk4RNuFJNttxmnofV7MRg93WZl1AAoiWWXHcQk4Wg9sAK64QA jt8ub3IxESyJsfoXA0Kxnd18gMpSG1VesHUV/OkGN0Fi5wnmxqFr3Z8kBcND3q8z9f/J XQJo71n1xTz++4CZY29Li2K0UtaEcY9m3e2HYkWc9u7w3c5aY17piJ1Q1mwWRNzfRfLN SRbw== X-Gm-Message-State: AOJu0YxZlMXT6zH8s2FqiQMN2zW7ADT/x3vkHlDju7cBGA2TOsBIkKx0 IldloZvDyEzdbjFnwb45AmtazToEawT9aJsJKtqwuLM3ltBb/41ZewFcP00ftDn86ds1IQuwUPK mfPqAdbfFTuCQbExNNXahk6arbgodx4Y= X-Gm-Gg: ATEYQzwBFLRvpSxaIqG1osw65CuvQcYaJwOgUq7lQWbUBUBnj9JKYZBk25gpvbl2TgL mGsUi741crDXwei5W8LIwdYF6SWMVH7QIqJiJrcvA2Oh25zji/fQPj1jtK4ZYY6DnbKC7jeyPaN zcp6d4Fq60l5aCcC6EhzHI+f75oAIM8gmVSR1Wf+cq+xnUMjkausWJTkkrW4hOIz2AhMz1/GCmY /O3zikCoXx1MSIWBLrRWtZ7SaM3N/bEaEbtKjWSW7LTl9iTvdfcOwsh0d0bk7vS70a3z2cTLzNu rOiW5mf+09SV9yocxKJ8wSqzDgrf23RoIDLKpm7d/ksG1pjAZCEV/ztr4Ul0m/v6VD4ox/rW X-Received: by 2002:a05:690c:998d:b0:79a:b824:ccb0 with SMTP id 00721157ae682-7a212338baamr18339017b3.46.1775004166016; Tue, 31 Mar 2026 17:42:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Tue, 31 Mar 2026 17:42:34 -0700 X-Gm-Features: AQROBzBwPznlfzm5aw2Isf6hpSj3brFWh54l9eEZhQ6vSGo431NklPhBwNFy9bw 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="000000000000ca52b0064e5b5c3e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ca52b0064e5b5c3e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ping=E2=80=A6 On Sun, Mar 29, 2026 at 5:20=E2=80=AFPM Igor Korot wro= te: > Dave, > > On Sun, Mar 29, 2026 at 10:34=E2=80=AFAM Igor Korot = wrote: > > > > 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. > > Linux version below: > > igor@WaylandGnome ~/dbhandler/Debug $ emerge -pv psqlodbc > * Last emerge --sync was 2y 5d 20h 34m 44s ago. > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > Dependency resolution took 43.43 s (backtrack: 0/20). > > [ebuild R ] dev-db/psqlodbc-11.01.0000::gentoo USE=3D"ssl -doc > -iodbc -threads" 0 KiB > > Total: 1 package (1 reinstall), Size of downloads: 0 KiB > igor@WaylandGnome ~/dbhandler/Debug $ > > Thank you. > > > > > 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. > >>> > >>> > --000000000000ca52b0064e5b5c3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ping=E2=80=A6

On Sun, Mar 29, 2= 026 at 5:20=E2=80=AFPM Igor Korot <ikorot01@gmail.com> wrote:
= Dave,

On Sun, Mar 29, 2026 at 10:34=E2=80=AFAM Igor Korot <ikorot01@gmail.com> wrote:
>
> Hi, Dave,
>
>
> On Sun, Mar 29, 2026 at 4:41=E2=80=AFAM Dave Cramer <davecramer@gmail.com> wr= ote:
>>
>> Hi Igor,
>>
>> Are you saying that the rest of the columns in the table should no= t be returned ?
>
>
> If I have PRIMARY KEY with INCLUDED clause, only PK fields should be r= eturned.
>
>
>>
>> What version of the ODBC driver are you using?
>
>
> On Windows I=E2=80=99m using the latest driver.
> On Linux slightly older.

Linux version below:

igor@WaylandGnome ~/dbhandler/Debug $ emerge -pv psqlodbc
=C2=A0* Last emerge --sync was 2y 5d 20h 34m 44s ago.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 43.43 s (backtrack: 0/20).

[ebuild=C2=A0 =C2=A0R=C2=A0 =C2=A0 ] dev-db/psqlodbc-11.01.0000::gentoo=C2= =A0 USE=3D"ssl -doc
-iodbc -threads" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
igor@WaylandGnome ~/dbhandler/Debug $

Thank you.

>
> 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 SQLPri= maryKey.
>>>
>>> I already sent an E-mail to this list about it but seeing that= there is
>>> no response, I am trying again.
>>>
>>> Thank you.
>>>
>>>
--000000000000ca52b0064e5b5c3e--