fix sql-on-fhir tests

This commit is contained in:
Grahame Grieve 2024-09-09 21:23:42 +08:00
parent 4692962820
commit 52668c1c78
1 changed files with 8 additions and 3 deletions

View File

@ -1819,9 +1819,14 @@ public class Utilities {
private static Object applyDatePrecision(String v, int precision) {
switch (precision) {
case 4: return v.substring(0, 4);
case 6: return v.substring(0, 7);
case 8: return v.substring(0, 10);
case 4:
return v.substring(0, 4);
case 6:
case 7:
return v.substring(0, 7);
case 8:
case 10:
return v.substring(0, 10);
case 14: return v.substring(0, 17);
case 17: return v;
}