Re: [dba-dev] unexpected behavior with HSQL embedded DB case when and coalese commands

2005-08-22 Thread Andrew Jensen
One latst piece of information before I let this go for the moment. Some of the examples of when you must use Column names, and when you MUST have Escape Processing OFF is dependent not only on theHSQL statement but on WHICH data type is passed in. The date to string functions are this way. F

Re: [dba-dev] unexpected behavior with HSQL embedded DB case when and coalese commands

2005-08-22 Thread Andrew Jensen
Hallo Frank No issue for now then. Perhaps it is more fitting in user faq document.anyway. Andrew Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew. Change the select statement to SELECT CASE DATA WHEN '' THEN 'X' WHEN '' THEN 'Y' WHEN '' THEN 'Z' ELSE '

Re: [dba-dev] unexpected behavior with HSQL embedded DB case when and coalese commands

2005-08-22 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Andrew. > Change the select statement to > > SELECT CASE DATA WHEN '' THEN 'X' WHEN '' THEN 'Y' WHEN '' > THEN 'Z' ELSE 'NOTFOUND' END AS "DATA" FROM TESTCASE > > > It still requires that EscapeProcessing = false. The HSQLDB engine is capable of more things that OOo's cross-DB

Re: [dba-dev] unexpected behavior with HSQL embedded DB case when and coalese commands

2005-08-21 Thread Andrew Jensen
Well, found the solution. Change the select statement to SELECT CASE DATA WHEN '' THEN 'X' WHEN '' THEN 'Y' WHEN '' THEN 'Z' ELSE 'NOTFOUND' END AS "DATA" FROM TESTCASE It still requires that EscapeProcessing = false. With the change (explicity setting the return columns name )

[dba-dev] unexpected behavior with HSQL embedded DB case when and coalese commands

2005-08-21 Thread Andrew Jensen
Installation WinXP SP2, OO.o 1.9.123 I am experiencing rather odd behavior between queries and viees when using case when and coalese commands. Here are the steps to reproduce the effect. Created HSQL embedded datasource using build 1.9.123 Execute the following commands in the sql window. T