[stackoverflow] [progress Openedge Abl] Odbc Error "column X In Table Y Has Value Exceeding...

Status
Not open for further replies.
U

user2023637

Guest
I get this error from Progress database when running the following query using ODBC:

SELECT distinct Table.column,
{ fn CONVERT(SUBSTRING(Table.ProblematicColumn, 1, 60), SQL_VARCHAR)} as test
FROM PUB.Table
WHERE ( Table.id IN (
SELECT Table.id
FROM PUB.Table
) )


I know it's possible to fix it using the DBTools. However, I run queries against multiple Progress databases of multiple clients, so it's not practical to do this every time. Also, for some reason, the ODBC client I'm using (PHP), doesn't show any error when this happens. Instead, it returns an empty result.

The convert I did to a VAR_CHAR of 60 character did help until I added the sub-query. When the sub-query is there, I get again the same error.

Interestingly enough, when the 'distinct' is not there, it's working. But I do need the distinct.

Continue reading...
 
Status
Not open for further replies.
Top