Base: 2 problems after splitting DB (& upgrading to 2.4 HSQLDB):
-
Tables: The existing columns cannot be amended. On my original embedded DB, I had formatted the (autovalue) ID fields to have leading zeros. This formatting has been lost, and I can’t amend the column to reinstate it. I can add a new column.
-
SQL code. So that leading zeros are displayed in query results and in forms, I originally used the following code
SELECT RIGHT(100000 + “c”.“person_id”, 4) || ’ ’ || “p”.“1st_name” || ’ ’ || “p”.“surname” “Donator”,
etc etc.
However, the inclusion of RIGHT (which I presume has become obsolete) produces the following error message:
SQL Status: 42561
Error code: -5561
incompatible data type in conversion in statement [SELECT RIGHT( 100000 + “c”.“person_id”, 4 ) || ’ ’ || “p”.“1st_name” || ’ ’ || “p”.“surname” “Donator”, etc etc.
I’ve spent the morning googling for alternatives and the closest i was able to ascertain was COALESCE. Tried that in place of RIGHT, but that produces a result which includes the leading 1, i.e. 1000008 instead of 0008).
Lastly, can you point in the direction of a source that not only list the keyword (for HSQLDB 2.4), but also give description of what they do, their function, I guess?