Hello,
we have a perfectly working recursive CTE which gives us SLQ0347 (The
recursive common table expression "<name>" may contain an infinite
loop.)
The CTE parses a string ("This,is,a,string"), removes word by word and
runs while length(col) 0. DB2 doesn't detect this as a terminating
condition and therefore issues the warning. Does someone have a nice
solution to work around this?
Or better yet, does someone have a function
comma_separated_string_to_table()? Something like
$ db2 "select * from table(csstt('This,is,a,string')) as a"
1
---------------
This
is
a
string
4 row(s) selected.
$