Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saiku adhoc in DB2, error in SQL statment generated by saiku adhoc #176

Open
avillagra opened this issue Dec 20, 2012 · 0 comments
Open

Comments

@avillagra
Copy link

db2 error Parent exception: DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null

to create a report select the clumns and Saiku adhoc returns data correctly.

The problem is when I apply a filter on a char column. In this case the column is char (30) and select 3 or 4 values from filter list ​​and clic en "Save" button, then saiku adhoc return:

There is an error in the SQL statement that is generated when you apply a filter by selecting values ​​from the list of values.

When see in db2 the sql statment to run, db2 show this SQL statement sent to DB2 from Saiku adhoc:

SELECT DISTINCT BT_MGC002_MGC002.GRPDSC AS COL0
FROM BHVSGI.MGC002 BT_MGC002_MGC002
WHERE ( ( BT_MGC002_MGC002.GRPDSC IN ( ?, ?, ?, ? ) OR '' IN ( ?, ?, ?, ? ) ) )

There is an error in the WHERE, the next thing is wrong => OR '' IN ( ?, ?, ?, ? )

#175

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant