From 859ba14dff6a0b1c0b915ba63d7ffa8c117e5c30 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 5 Oct 2018 19:08:12 +0000 Subject: set default date/time and numeric config for a database git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1204 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../java/com/healthmarketscience/jackcess/impl/DBEvalContext.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java b/src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java index 6bc2326..7fcfcb8 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java @@ -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 _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(); -- cgit v1.2.3