diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2018-10-05 19:08:12 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2018-10-05 19:08:12 +0000 |
commit | 859ba14dff6a0b1c0b915ba63d7ffa8c117e5c30 (patch) | |
tree | 0217f3626a84237d26cd36ba9227c2384c74e461 | |
parent | 443c9fef2bb52d8564e400fe429a22412f0f2cc6 (diff) | |
download | jackcess-859ba14dff6a0b1c0b915ba63d7ffa8c117e5c30.tar.gz jackcess-859ba14dff6a0b1c0b915ba63d7ffa8c117e5c30.zip |
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
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/DBEvalContext.java | 5 |
1 files 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<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(); |