We are test 8.1 for migration from 7.2. Without success.
A lots of sql procedures can't be compiled because db2 crash.
One of simple code for garantee crash
CREATE PROCEDURE TEST(IN PARAM_1 VARCHAR(512))
LANGUAGE SQL
BEGIN
declare res_01 cursor with hold with return to client for
with tt (vvalue, pparam, ccount) as (values('', PARAM_1, 0)
union all
select substr(pparam, 1, locate(',', pparam)-1) as
vvalue,
substr(pparam, locate (',', pparam)+1) as
pparam,
ccount+1 as ccount
from tt
where locate (',', pparam) > 0 and ccount<50
)
select * from tt for read only;
open res_01;
END
@
Our cfg - trial 8.1 fixpack 5 under redhat 7.3
Informational tokens are "DB2 v8.1.0.48", "s040212", "MI00069", and FixPak
"5".
Andy
P.S. And restore/upgrade 7.2 -> 8.1 DOESN'T WORK!!! 1 1388
Hi folks,
It seems the following can be a good workaround: with tt (vvalue, pparam, ccount) as (values('', coalesce(PARAM_1,''), 0)
Besides, if you cast all parameters in the values, among then:
smallint(0) and try this on CLP, you get:
SQL0347W The recursive common table expression "JMARC.TT" may contain an
infinite loop. SQLSTATE=01605
That's not true because there is a test ccount<50.
Could this be corrected too ?
Hope this helps,
Jean-Marc
<andreyp#Antispam@mapsitnA#it4profit.com> a écrit dans le message de
news:40**********************@news.nl.uu.net... We are test 8.1 for migration from 7.2. Without success. A lots of sql procedures can't be compiled because db2 crash.
One of simple code for garantee crash
CREATE PROCEDURE TEST(IN PARAM_1 VARCHAR(512)) LANGUAGE SQL BEGIN
declare res_01 cursor with hold with return to client for with tt (vvalue, pparam, ccount) as (values('', PARAM_1, 0) union all select substr(pparam, 1, locate(',', pparam)-1) as vvalue, substr(pparam, locate (',', pparam)+1) as pparam, ccount+1 as ccount from tt where locate (',', pparam) > 0 and ccount<50 ) select * from tt for read only; open res_01; END @
Our cfg - trial 8.1 fixpack 5 under redhat 7.3
Informational tokens are "DB2 v8.1.0.48", "s040212", "MI00069", and FixPak "5".
Andy
P.S. And restore/upgrade 7.2 -> 8.1 DOESN'T WORK!!! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eric Brunel |
last post by:
Hi all,
I was creating a Tkinter widget in the style of the reversed tabs below Excel
worksheets and I stepped in a serious problem: the code I made makes python
crash with a seg fault, bus...
|
by: Jürgen Devlieghere |
last post by:
We encounter a crash every now and then at a client, and now I'm starting to
doubt the fundamentals of life :-)
We have a list of structs.
struct SContactProperty
{
public:...
|
by: Adam Louis |
last post by:
I would like help resolving this problem. I'm a novice who's been
hired to query a hospital database and extract useful information,
available to me only in a dynamically generated, downloadable...
|
by: arizvi |
last post by:
Hi,
My program crashes when it reaches a certain line. There is nothing
wrong with that particular line as I have changed it to something
simple like i=0, and it still crashes.
If I remove...
|
by: samsonfr |
last post by:
Hello,
I have read KB 814472 and the article "How To: Remove Dependency on
_vcclrit.h"
(http://msdn2.microsoft.com/en-us/library/ms173267(en-us,vs.80).aspx)
which confirmed that VS.NET 2005...
|
by: Jarod |
last post by:
Hey
If you make a control that has property like this:
public string Text
{
get { return this.Text; }
}
There is a stackoverflow and VS 2005 designer crash. When you don't use a
visual...
|
by: NewToCPP |
last post by:
Hi,
Why does a C/C++ programs crash?
When there is access to a null pointer or some thing like that programs
crash, but why do they crash?
Thanks.
|
by: linq936 |
last post by:
Hi,
It could be a very simple problem, but i can not see it...
Here is the code:
char* lower(char* str){
char* p = str;
while ( *str ) {
*str = tolower(*str); <=====crash!
str++;
|
by: ramprat |
last post by:
I am using a Dlookup to pull a value from my traffic table for a record prior to moving that record to a traffic_history table. I want to take the value and store it in a variable and then populate a...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |