Subject | Re: Query returning incorrect data |
---|---|
Author | phil_hhn |
Post date | 2009-01-28T23:42:55Z |
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
where props contains:
props.put("user", aUsername);
props.put("password", aPassword);
props.put("encoding", "UNICODE_FSS");
props.put("charSet", "UTF8");
That last property 'charSet' seems out of place to be setting it to
'UTF8', but that seemed to be the only thing that worked for us
(props.put("charSet", "UNICODE_FSS") didn't work correctly)... and all
our 'normal' queries work just fine !?!
>We use DriverManager.getConnection('our connection string', props),
> I suspect this is not a bug, but some inconsistency because of unicode
> use... What is your JDBC URL/connection properties for Jaybird?
where props contains:
props.put("user", aUsername);
props.put("password", aPassword);
props.put("encoding", "UNICODE_FSS");
props.put("charSet", "UTF8");
That last property 'charSet' seems out of place to be setting it to
'UTF8', but that seemed to be the only thing that worked for us
(props.put("charSet", "UNICODE_FSS") didn't work correctly)... and all
our 'normal' queries work just fine !?!
>Unfortunately that did not work...
> Also you can try
>
> select (case when status=1 then _UNICODE_FSS 'Yes' else _UNICODE_FSS
> 'No' end) as FlagStr from mytable