Actually, that can't happen, so let's handle it more gracelessly.

This commit is contained in:
Par Winzell
2009-09-09 19:55:43 +00:00
parent 27dcb0e753
commit 12fabe42f7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ant.jar"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ehcache.jar"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ehcache.jar" sourcepath="/HOMESRC/ehcache-1.5.0-sources.jar"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/google-collect.jar"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/junit4.jar"/>
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/velocity-1.5-dev.jar"/>
@@ -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);
}