on 12-25-2013 8:31 PM
Hi all,
I've got a SELECT that returns Δ (U+0394) both in a column name and value. Studio works fine, however in hdbsql I get the error
* -10427: Conversion of parameter/column (5) from data type VARCHAR1 to ASCII failed
and neither -resultencoding nor -B have any effect on this. Has anyone any idea how to make this work? I'm even not interested in the result, I only want the execution time, so throwing out the selected tuples would be fine.
Cheers,
-- Micha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Micha,
I am guessing, based in the info provided, that you are binding an ASCII based parameter to an NVARCHAR column, and this is the source of the problem. Try replacing with a Unicode based parameter.
Regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
as to types, it is a view with constant values in a CASE expression, so no types are explicitly specified. A similar error can be easily reproduced directly:
hdbsql=> select 'Δ' AS "Δ" FROM dummy;
Δ
,
* -10427: Conversion of parameter/column (1) from data type VARCHAR1 to ASCII failed
* -10427: Conversion of parameter/column (1) from data type VARCHAR1 to ASCII failed
Obviously, hdbsql thinks that the value is ASCII but I haven't found a way to tell it otherwise. I cannot materialize the view, this is a no-no in Hana :-).
Cheers,
-- Micha
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.