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 1w8T04-000Yuc-0A for pgsql-odbc@arkaria.postgresql.org; Fri, 03 Apr 2026 01:07:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8T02-0099GN-2L for pgsql-odbc@arkaria.postgresql.org; Fri, 03 Apr 2026 01:07:03 +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 1w8T02-0099GF-1f for pgsql-odbc@lists.postgresql.org; Fri, 03 Apr 2026 01:07:02 +0000 Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w8T00-00000000IHX-0IPf for pgsql-odbc@postgresql.org; Fri, 03 Apr 2026 01:07:02 +0000 Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-7947cf097c1so13909777b3.2 for ; Thu, 02 Apr 2026 18:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775178418; cv=none; d=google.com; s=arc-20240605; b=MC5HBgnfo9RURKALpe2N65BJZMC0J2NKf+9Ke+g2ePuWS8Zm8wRtWO1KlzrQPrkvpb nKBVr5PcNbzGa5jB67lvT0pewPz5FTkiYG64OW/RIHWzNMbivOO5fMLnHA7ZUyIECIMr GjWZp52vure2r6cMIzRh3NGhBmArsELCHqJU8LEvEL/Vbxxcmf5RiPQcacjBTY9RRiHo IQSMfhdC4fQIMfKQzIGQJobg17pFEKaP+21B3ih8DK92GKxTbkE0xoeffmm4L3aIQ0VC I7Aspe1PVQj6pt+XFKzKuSm3P4cUd0BDNxUYF2KJsBQdbv6nr202Xf4W1NIJOGSyWem2 ZAmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sRAiDRvbtSPxLdpmC6zxfQL6TzwQxJzax/LaxlVLoME=; fh=gQ1ypmDyWf3nH1gznU9Ug0JOCBZ+shqszu66x8185Qc=; b=HhpgepSPjYjKxuvctIGs7XF1VJJ/YegORigjFCvGr+mQnLNy79Z0r+MIZ0EpBvItVQ fcV3b+nodO1G0PNAAlNcicRJ2d8cqU9TQm7HmgQiDkHXcnYh9GWXJCEhdg1RcYTRnWFG oZ2CzqjLMKDP01moXdF5vpPh61HPcr89HvNcffXsjne0HA7k8jHlnBCekyTJ2kU8VoxG 6Gs4tNUlRdl9OnNNbW6HntFuCDao6MUiImPLmtLx8xyBNRagZihUj+IJ5FBoPRp89CBH DblkVaYELBDtE8EddPUf3ns1zvkZzmSu5u6vgpSmWj0zqd/AuJVW5nzITHFLPoULTp/O vnOg==; 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=1775178418; x=1775783218; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sRAiDRvbtSPxLdpmC6zxfQL6TzwQxJzax/LaxlVLoME=; b=cEQIgvgphn36kyomHNZ1WLt3ojRorrGKF0LFp/lrZUyPjUkmG3DysXLzrSrtYwv3p/ YQNeQlzZDtvdrA0mBxf9S7obeuOne3dtp52iU6X6g7S2nODYr8vti0XguGkqfVbrxqqr jcZNgnbGqk3J+4riPH3kuScD+qydxzjJqsuRDqB+bxc8zrSqu5wiohP9iMh0GAIIttQ+ R6uD/NYUUgJyHIbLNyQ+Drk97PP0UnmvE4r/KlqxaaUKeagXveMbCGZDE/kTWoUa0iyD 1Ogo0ceP+BCgO1MLpGbh7P0gAzTEyz61ykZW9q5ZbeGFAMpBvPl0BXPI5WV0ElLkwIBQ QFhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775178418; x=1775783218; h=content-transfer-encoding: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=sRAiDRvbtSPxLdpmC6zxfQL6TzwQxJzax/LaxlVLoME=; b=RSE77xVxtgGT5Y3smjrUKRv/Cv/duW2WU1lVn7rGa3F0SJdbWIlObIN3kI0cQWJ4M8 j8/++7RzFk2UgjaPYVfSFPeEhmF+zHmHI53qoNJPPpnsgqp9joNAbjhNAviAqOpCft2U guocdHsvGZxaMJ1Y4rSowy58JjddpRRnlik/g2KpwZqhDO/Dg6GQkFhRGANcCbkeh6MG 2PXd8CcVpFDvaQb75jUtVrEFfIsi/GPYYEwzNrG6uriHAQqBxv7p9/igTa6ZbIAscOkU 1AZM0+EA/zbR4DdiCfmtFo6GIh2HsSoB45Hd5eBD43UQZmhpU8upIK6x7lA66dNPxm+J pyqw== X-Gm-Message-State: AOJu0YxUuFgj2LKj4F8yT7LmDAjwDC3sA7BS/DagIfY8ZEoek9gkn473 yS08boA+3jm5mDkW2xMPi2UfCdYc5oaDw9zT6Lu3uWfsIUEcBT2DlxxVtndCEDZrNoJHpFlhGb8 g9qQ7xzAsXw3Etf/v7oNir4pX8fDmoSk= X-Gm-Gg: AeBDievC03/We82Y1M68TXiHg1u4RVR4gCuQ/Ln26lksB2mUJFVQprPya44ganJJ+1d 5zlYF8GUNQMMfdrHPgVWjZA2nB1DJYTDldCNaUv7M8XXmELSxi9Ca6ilwbkk+fDrE0HTNr1yR4e GVqdxu0THN4FcI6qIy1k3PE89ErBliVhzaWd1Oy0T/3v2mfQAGyNRaZzzfB5VQ2P9CSMqaOkCZm Fv4q2VsohQbJcww05wVvdfEbgM263frVoTBUiOYZuKm9aGNSd60njYqrFxCp+Yzpnw/TinRFLDq K4GBzijxhkbYfaPPpGbzM+LNvdrMyq8ApTTjw4thEU1iahff39jiU0qUH+Gma29+KuXXOr0= X-Received: by 2002:a05:690c:c4e9:b0:79a:46eb:d1a2 with SMTP id 00721157ae682-7a4d31e75bbmr16225927b3.11.1775178418267; Thu, 02 Apr 2026 18:06:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Thu, 2 Apr 2026 18:06:55 -0700 X-Gm-Features: AQROBzBMEfm0kH6gSBEAelse5gRiMvppYgreCBDUpWvTpXFho7FiDCkByB6Zq38 Message-ID: Subject: Re: Included fields should not be a part of SQLPrimaryKey() To: Dave Cramer Cc: PostgreSQL ODBC list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dave, On Wed, Apr 1, 2026 at 2:24=E2=80=AFAM Dave Cramer w= rote: > > Hi Igor, > > Best to create an issue here https://github.com/postgresql-interfaces/psq= lodbc/issues Done - https://github.com/postgresql-interfaces/psqlodbc/issues/170. Thank you. > Dave Cramer > > > On Tue, 31 Mar 2026 at 20:42, Igor Korot wrote: >> >> Ping=E2=80=A6 >> >> On Sun, Mar 29, 2026 at 5:20=E2=80=AFPM Igor Korot = wrote: >>> >>> 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 SQLPrimaryK= ey. >>> >>> >>> >>> I already sent an E-mail to this list about it but seeing that ther= e is >>> >>> no response, I am trying again. >>> >>> >>> >>> Thank you. >>> >>> >>> >>>