× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 1/8/2015 1:03 AM, Birgitta Hauser wrote:
If you convert a fixed length character field by using the scalar function
COALESCE, the result is returned as VARCHAR.

Yes, due to a string constant being considered a varying-length
character string (per SQL Reference, Constants). If they'd say VARCHAR
it would be clearer, and I left feedback.

When fetching this result into a fixed length field, data conversion occurs.
So message SQL7919 is correct.
Explicitly casting the result of COALESCE into a fixed length character
removed the message.

BTW message SQL7919 is not even a warning but only an information message.

Yes.

The reason I was in debug was that the code did a FETCH and then a check
for SQLSTATE='00000'. It wasn't; it was 01004 (truncation). The
problem with me following the joblog was that there were actually TWO
warnings, not one. One was the harmless SQL7919 and the other was
SQLSTATE 01004. The SQLSTATE did NOT put any message into the joblog;
there was only one joblog message and I stupidly assumed that it paired
up with the SQLSTATE 01004.

It didn't. SQLSTATE was my problem, and I should have ignored the
joblog. I should have known better.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.