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 1w70NZ-004rhQ-1K for pgsql-odbc@arkaria.postgresql.org; Mon, 30 Mar 2026 00:21:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w70NX-0008sl-2f for pgsql-odbc@arkaria.postgresql.org; Mon, 30 Mar 2026 00:21:16 +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 1w70NX-0008sd-20 for pgsql-odbc@lists.postgresql.org; Mon, 30 Mar 2026 00:21:16 +0000 Received: from mail-yx1-xb12b.google.com ([2607:f8b0:4864:20::b12b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w70NV-00000001u8b-2616 for pgsql-odbc@postgresql.org; Mon, 30 Mar 2026 00:21:15 +0000 Received: by mail-yx1-xb12b.google.com with SMTP id 956f58d0204a3-6501e465a8eso225218d50.1 for ; Sun, 29 Mar 2026 17:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774830072; cv=none; d=google.com; s=arc-20240605; b=QKzvTdlN1BLugzFHhGUpI8I4qSNWiJ9egtatHVgPeM8lHVz6gu8JIU7vvjH5sP5IIB /zhrmo4k5xxyoDPWIVKchmooYa+cl0+cxsfdHL3Rf5EhpOTUt1dAtRFzb5CnPvLZbZbw ZYyGnhvEq34gbMEPc57djjpI+C6yn/PTgsj4NUIdJpiXJrBHW1G8D6Ij8JeJ5brscrTI f8jtFXKY5JXu4ks47CBoywOb2UmlBYy440DFzcGesKbJ/PvXa8Z98APphffPi22jvbyR ZA3f+WaF2Uy3bEiAEWgYj66V0+HRrTWPtd96a7qjg/EMjD8hve8sDFTLpT849UjvEekh lT9w== 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=zzTIcaI4xAIdftu0QR7ASAGNSaVI8m+mrLP/Y5vEUe8=; fh=gQ1ypmDyWf3nH1gznU9Ug0JOCBZ+shqszu66x8185Qc=; b=iOD1uCcSubgDREDFZd8CIx1RzvJPt4XDdq5bdVp2l9+qqFqIpQuDcUaoQIqLxhdGJ+ Ue7EtjF6ipyytrjuDrYn26vKZ5OxqAbjpVeuLFHiDkqddq9yQMhQkBzwLUS2oqJqQikW BLfI91Qe4sXm98LSgYu+hk+MN80xobCqpkykYxmT6x3e/6Rq3lAe4gjjS9khl0RimcLs iLg60LFoc+xoBQQvIirQh+XtDpMLiXWUEYgSpv81SwVs9txmXyjNxbmCscNK5xeGCTa0 ygZ2PjVRAifXO0iFT3ob/w9uDHZXscXMjht82+TBrNzIR/qjGQPAknGZAEuYtEUPHBWq hn+Q==; 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=1774830072; x=1775434872; 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=zzTIcaI4xAIdftu0QR7ASAGNSaVI8m+mrLP/Y5vEUe8=; b=m5w9eR0/lp7RtMjS2jsdm1r0ohSzQdYFnaA9CNF6rJ/+23qpgNfkTpfBLWEBwdP1uZ GJ6J7IjR0KteKvduHZmV/A4yyt6yyldbTmceTm+cKLLSm437PelBQtlnzHCCrmUbO6um WFVkdCrD4Dbdd4uiBffUEcZx+rejM0x2kw1FJai2ZYeHRdnFtWkt8q8LePrToBCGBdGp l1KavpDVUAE+BwoWuR2cW0qRxs9VySwo0ilxlJQZA5mX8Ni4pqZqUps+3gM/spKnV5nh tk6wRR/oAb3e4OehJwViVornTjxLvJTbwk6yTNYR1oUq6dpYroq2cp1hhSpkt9wDdV8x NGIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774830072; x=1775434872; 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=zzTIcaI4xAIdftu0QR7ASAGNSaVI8m+mrLP/Y5vEUe8=; b=KRmQVyLhewrEbHe156Mf3vYhDOFyvzBXawcTL/vNIbdO1gW5t1SuqGqGkCj+j7KEM3 IYGb+rxadiBL8WqK7n8lpGAUCEofVECHL4NkZRDsRS5CGhKEyBNDLpyHVsmuxqvnlhO+ qTjgdHVwKgKhYCnqmiydHm7knd8pROmfYnAIwnBT6N9ou6RERwIjWbAs5jjtVjMnv0ea DRhl1IVnXGSp/+2Xm1kCC5yeha+PjZ9pLAauBwU+3QHR7S4LgDpr4dEmfJGaczXFpUyG trHoZvjFZO/tcftbOHkn3TF7cZUpJJuqNNMyQlqTKeexy0Wpd2a3Ba5/EclOSB/Thr1D ljzg== X-Gm-Message-State: AOJu0Yy0z1SghTjDOvyhIceTftJ74Y8YhN+O85R3pDDxNdAPD/7Chtnz VL8w4ncjrG3w13OC1AFFW+w8wfmH3uZf9YvZCPIbNM32xGpri2tdZB8rBjoVZw4uI+D8LseagKL ZnKl2rqPTrDVrug8/u22Mdbrw91Qru4t+JAC/ X-Gm-Gg: ATEYQzzp/OyDWqxRhlbo3pTj31BD5vyj7WoWR1wdrDLBwkxU3zGGLGatFTKTibPLEgk rOdRk0xK6EcyI4RD+ztMnEdXdtj87EwJEUYflN6czq8UUAiQAfYWWJyLwYBFj4PIQG+RpgvKbdR LUzbszKZ2m0k50Ow2023r9k+NaLku3DSkeEYU2hMjA4E3D/V4/UF9Q+XX9RdRqL+bnTwJ8/5csO rR8wlQzcHbLCitPBZlNbNhOZ1jV9hdm6SQS/AXdRRab5mNFONqs+hI1duk/yF2aogemQ3ieUEjR 5Y3eyJtYOXFCVT+saiJTXeJlHTtdf1lkmLbwZWxqI5yWb8A0Ip5/xf4qHHhQLEre X-Received: by 2002:a05:690c:e3cf:b0:796:335a:895 with SMTP id 00721157ae682-79bcff73995mr126651017b3.6.1774830071809; Sun, 29 Mar 2026 17:21:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sun, 29 Mar 2026 19:20:59 -0500 X-Gm-Features: AQROBzCniyx63VGsawF-7yR5O5tO3iUE6-roJ13MrYVcbemN6CavMAo-i6vARnk 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 Sun, Mar 29, 2026 at 10:34=E2=80=AFAM Igor Korot wr= ote: > > 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 r= eturned ? > > > If I have PRIMARY KEY with INCLUDED clause, only PK fields should be retu= rned. > > >> >> 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. >>> >>>