I created a view that uses WM_CONCAT to group results together, like this: wm_concat(DISTINCT complies) and it runs smoothly in DB, without any errors.
But when I try to put it in a Django app, using, models, views, tables it gives me an error ORA-22922: nonexistent LOB value .
I tried using listagg(complies, ',') WITHIN GROUP (ORDER BY code) complies, but that gives me a DB error result of string concatenation is too long.
I'm aware that WM_CONCAT is not supported by Oracle, but I have used that successfully before.
Status in uwsgi says django.db.utils.DatabaseError: ORA-22922:
Is this a DB fix or Django fix, and how do you fix it?
wm_concatfunction because it is undocumented and discovered as workaround at Oracle 8i times.Djangohas nothing to do withOracle. Error is quiet clear,result of string concatenation is too longwhich mean the result of concatenation is more than 4000 chars. You can do asubstrand select 4k characters - XINGwm_concatsuccessfully before. That error,result of string concatenation is too longhappens when I useLISTAGGbut not when I usewm_concat. It runs without any errors inPLSQL, but when I call it frommodelsinDjangoit gives me and error:ORA-22922: nonexistent LOB value` I don't understand why that is happening. - kej