|
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. For example DAYOFTHEMONTH With the test table T1(ID IDENTITY, DT DATE,TI TIME,TS TIMESTAMP) INSERT INTO T1 (ID, DT, TI, TS) VALUES (NULL, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP); Issue this with EscapeProcessing OFF and the result is incorrect, NULL value returned. SELECT DAYOFMONTH(DT) FROM T1 Turn EscapeProcessing ON and the result is correct with a column named "_expression_ 1" However, change the selected column from DATE to TIMESTAMP SELECT DAYOFMONTH(TS) FROM T1 andt EscapeProcessing OFF - result is incorrect, NULL value returned. Turn EscapeProcessing ON - ERROR in parsing statemtnt - you MUST explicitly name the column in the resultset. I'll go ahead an make compendium of the results as I plow thru all the tests supplies with the HSQL 1.8.0 distribution before I get back to you on this again. Andrew Andrew Jensen wrote:
|
- [dba-dev] [Fwd: [Marketing] a... John McCreesh
- Re: [dba-dev] [Fwd: [Mar... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-dev] [Fwd: ... John McCreesh
- [dba-dev] unexpe... Andrew Jensen
- Re: [dba-dev... Andrew Jensen
- Re: [db... Frank Schönheit - Sun Microsystems Germa ny
- Re:... Andrew Jensen
- ... Andrew Jensen
