From 12fabe42f74c7f8d4a6b50e6d39b5bd527343512 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Wed, 9 Sep 2009 19:55:43 +0000 Subject: [PATCH] Actually, that can't happen, so let's handle it more gracelessly. --- .classpath | 2 +- src/java/com/samskivert/depot/impl/HSQLBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.classpath b/.classpath index c463857..1a28251 100644 --- a/.classpath +++ b/.classpath @@ -3,7 +3,7 @@ - + diff --git a/src/java/com/samskivert/depot/impl/HSQLBuilder.java b/src/java/com/samskivert/depot/impl/HSQLBuilder.java index b5a7583..fe242f0 100644 --- a/src/java/com/samskivert/depot/impl/HSQLBuilder.java +++ b/src/java/com/samskivert/depot/impl/HSQLBuilder.java @@ -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); }