DB2 - Problem description
| Problem IC79085 | Status: Closed |
DB2 Text Search query issue with outer join | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
Depending on the specific search term a query may fail with
SQLCODE: -20425, Column <columnname> in table <tablename> was
specified as an argument to a text search function, but a text
search index does not exist for the column.
Sample query:
SELECT asset.assetnum,
COALESCE(l_asset.description, asset.description)
description, asset.description bl_description from l_asset
RIGHT OUTER JOIN asset ON
(l_asset.ownerid=asset.assetuid and l_asset.langcode='EN')
WHERE (((l_asset.description is null and
contains(asset.description,' "FLD112" ') =1 )
OR
(l_asset.description is not null and
contains(l_asset.description,' "FLD112" ') =1 )) and siteid =
'BEDFORD') ;
Fails with the following error:
DB2 SQL error: SQLCODE: -20425, SQLSTATE: 38H12, SQLERRMC:
DESCRIPTION: Message: Column "DESCRIPTION" in table "" was
specified as an argument to a text search function, but a text
search index does not exist for the column. | |
| Problem Summary: | |
| Local Fix: | |
| available fix packs: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
| Solution | |
| Workaround | |
not known / see Local fix | |
| Comment | |
The feature will be supported in db2_v97fp5 | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 06.10.2011 14.10.2011 08.05.2012 |
| Problem solved at the following versions (IBM BugInfos) | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.5 |
|