Re: Catch "RAISE NOTICE" in ODBC application

From: Dave Cramer <davecramer(at)postgres(dot)rocks>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: PostgreSQL ODBC list <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Catch "RAISE NOTICE" in ODBC application
Date: 2025-11-30 11:31:13
Message-ID: CADK3HH+MkPAaTkZ+Ay82Ch7bdN86RB2swUoD7p2-_2q_UGk=wA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

ChatGPT shows this:

SQLGetDiagRec(
SQL_HANDLE_STMT, // statement handle
hstmt,
iRecord, // record number, starting at 1
SqlState,
&NativeError,
MessageText,
BufferLength,
&TextLengthPtr
);

Notices will have:

-

SqlState = "00000"
-

NativeError = 0
-

MessageText = "<your NOTICE text>"

Dave Cramer
www.postgres.rocks

On Sun, 30 Nov 2025 at 02:58, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi, ALL,
> How do I do that?
>
> Google showed only the libpq way...
>
> Thank you.
>
>
>

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Igor Korot 2025-11-30 20:23:59 Re: Catch "RAISE NOTICE" in ODBC application
Previous Message Igor Korot 2025-11-30 07:58:28 Catch "RAISE NOTICE" in ODBC application