× 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.



Personally, I treat anything but 00000 and 02000 as abnormal conditions (unless explicitly ignored).



-----Original Message-----
From: John Yeung [mailto:gallium.arsenide@xxxxxxxxx]
Sent: Thursday, February 27, 2020 12:48 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Compatible data types in SQL CASE expressions

On Thu, Feb 27, 2020 at 1:04 PM Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

I get SQLSTATE 01565.

Ah, fair enough. The "messages and codes" reference says that states starting with 01 are "just" warnings, so that would explain why the operation still succeeds.

I'll accept that it's my responsibility to be aware of possible warnings. I still disagree with the wording in the reference regarding CASE expressions. To me, "must" implies a hard error is coming if you fail to meet the requirement, unless there is an explicit explanation otherwise.

John Y.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.