| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | Igor Korot <ikorot01(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
| Cc: | Rob Sargent <robjsargent(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: How to properly use TRIM()? |
| Date: | 2026-03-07 21:29:07 |
| Message-ID: | 8f73ec0b-8f68-4f87-badc-a86939a211e1@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 3/7/26 12:46 PM, Igor Korot wrote:
> Hi, David,
>
> On Sat, Mar 7, 2026 at 12:03 PM David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com <mailto:david(dot)g(dot)johnston(at)gmail(dot)com>> wrote:
>
> On Sat, Mar 7, 2026 at 12:58 PM Igor Korot <ikorot01(at)gmail(dot)com
> <mailto:ikorot01(at)gmail(dot)com>> wrote:
>
> So I started looking for a way to return SQL_NO_DATA
> on that 4th column...
>
>
> Doesn't "No Data" refer to the result set as a whole, not individual
> columns? I'd assume NULL is detected some other way.
>
>
> No, I think it’s column based.
1) My knowledge of ODBC is limited.
2) This:
"SQL_NO_DATA No more data was available. The application calls
SQLGetDiagRec or SQLGetDiagField to retrieve additional information. One
or more driver-defined status records in class 02xxx may be returned.
Note: In ODBC 2.x, this return code was named SQL_NO_DATA_FOUND."
would seem to indicate that David Johnston is correct:
'Doesn't "No Data" refer to the result set as a whole, not individual
columns? I'd assume NULL is detected some other way.'
> The call to SQLGetData() returns data in one column.
>
> And as stated it successfully retrieves empty array for column 3 and
> moves on.
>
> Thank you.
>
>
> David J.
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Igor Korot | 2026-03-07 21:46:42 | Re: How to properly use TRIM()? |
| Previous Message | Igor Korot | 2026-03-07 20:46:09 | Re: How to properly use TRIM()? |