Actually, that can't happen, so let's handle it more gracelessly.
This commit is contained in:
@@ -179,7 +179,7 @@ public class HSQLBuilder
|
||||
case YEAR:
|
||||
return "year";
|
||||
case EPOCH:
|
||||
throw new IllegalArgumentException("HSQL doesn't have a direct function for epoch");
|
||||
// internal error, EPOCH is handled in the calling function, fall through to error
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown date part: " + part);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user