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



I don't now about always halting... I do know that the likelihood of a city name exceeding 20 characters in our customer database is pretty good.

Now, having said that... I also know that our clients that require these reports (they end up in Excel) are notorious for not even looking at them.
So there is a possibility that the error existed for years and no one noticed.

It was just odd that I found TWO separate issues in the same day with SQL halting.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of John Yeung
Sent: Wednesday, April 6, 2022 4:25 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Suddenly I have SQL Insert errors?

On Wed, Apr 6, 2022 at 3:58 PM Greg Wilburn
<gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

I hear what you're saying, but I'm not so sure that is the case.
Following that logic, the message would occur any time the value of "city" was longer than 20 (which occurs a lot).
This has been in use for many years.

What are the chances that the severity of the message id changed?

Hm. Well, it's not unheard of for a message to change severity, but I
think that's rare, and I wouldn't have expected this message to have
changed. I mean, the message has been around since forever and,
correct me if I'm wrong, it has never offered to truncate and
continue. So I don't know that severity plays into it.

I am surprised that you would previously have gotten implicit
truncation (and completion of the insert) and now are getting a halt.

Do you know if you are now *always* halting on too-long data? (If only
sometimes, then that would be even more mysterious.)

John Y.

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.