]> source.dussan.org Git - jackcess.git/commitdiff
set default date/time and numeric config for a database
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 5 Oct 2018 19:08:12 +0000 (19:08 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 5 Oct 2018 19:08:12 +0000 (19:08 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1204 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java

index 6bc2326714cc2989561b04e68f8109f62f8cb92f..7fcfcb82ce21ff4d6219ee21f9b61f6fc2ebaeb5 100644 (file)
@@ -23,7 +23,6 @@ import javax.script.Bindings;
 import javax.script.SimpleBindings;
 
 import com.healthmarketscience.jackcess.expr.EvalConfig;
-import com.healthmarketscience.jackcess.expr.Function;
 import com.healthmarketscience.jackcess.expr.FunctionLookup;
 import com.healthmarketscience.jackcess.expr.NumericConfig;
 import com.healthmarketscience.jackcess.expr.TemporalConfig;
@@ -42,8 +41,8 @@ public class DBEvalContext implements Expressionator.ParseContext, EvalConfig
   private final DatabaseImpl _db;
   private FunctionLookup _funcs = DefaultFunctions.LOOKUP;
   private Map<String,SimpleDateFormat> _sdfs;
-  private TemporalConfig _temporal;
-  private NumericConfig _numeric;
+  private TemporalConfig _temporal = TemporalConfig.US_TEMPORAL_CONFIG;
+  private NumericConfig _numeric = NumericConfig.US_NUMERIC_CONFIG;
   private final RandomContext _rndCtx = new RandomContext();
   private Bindings _bindings = new SimpleBindings();