James Ahlborn
6d1e438383
rework string conversion to date; add support for dates with implicit years; implement DatePart function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1210 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
e95602c377
fix broken test
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1209 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
603d0d1313
reimplemnt and test financial functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1208 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
11b92ba49d
add support for strconv function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1207 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
443c9fef2b
rework public expression api with better locale handling; support parsing of number strings with grouping separators
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1203 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
a314d6501d
add support for monthname function; implement better string to date/time conversions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1202 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
0dea2079f7
add support for weekdayname function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1201 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
010cc904a5
implement IsNumeric; add support for hex/oct integer strings
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1199 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
1236f27d91
refactor support for working with Value instances
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1192 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
5dbcd36169
minor refactor of function support; start adding top level docs for evaluation support
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1190 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
f0db074605
fix compiler warning
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1189 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
3739de6df8
test TimeSerial; implement DateSerial
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1187 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
dd7b26018c
test custom EvalConfig; fix time format
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1186 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
b2aba90126
add some date function tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1185 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
abe506f27c
test number functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1183 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
18a4998e71
test more functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1182 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
37338c5a25
add ability to get original expression; implement some parsing tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1181 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
0dc74ed679
fix handling of certain field validator expressions; add some tests for various expressions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1180 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
17d5d661ac
add more tests; add not like
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1178 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
0a182fbac9
more tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1177 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
08d2cf2b83
use common method pattern between ParseContext and EvalConfig
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1176 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
a6f33b99a6
ditch default parse context
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1175 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
f495fcc761
add some tests for functions; fix said functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1166 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
0b5f764325
more number format unit tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1164 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
94ada64785
add number format unit tests; update tests based on new formatting
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1163 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
eae1835fb7
add unit tests for property expression evaluation features
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1162 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
6d200f6948
implement floating point number formatting which matches access
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1159 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
0d10040410
handle literal string default values
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1157 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
09d03800ce
use decimal math context which matches access precision; tweak string to number conversion to match access
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1156 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
2ff5d06acd
normalize decimals when used; convert number literals to decimal instead of double; handle int overflow for number literals
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1155 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
a0e9ce63ee
knock out some fixmes; add support for custom function lookup and custom bindings passed into expression evaluation
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1151 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
bfc70bd618
Add some additional property keys and relevant enums for values
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1150 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
1a8771e555
plug expr evaluation into columns/tables; create Identifier for tracking expression ids; support single quoting in expressions; tweak string to number coercion; implement topo sorter for calc col eval
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1148 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
5a39a80966
start enforcing the required and no-zero len column properties
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1147 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
9908a0afe9
use specific exceptions for expr eval
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1146 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
e7f3aa37a7
fix null handling for string funcs
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1145 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
b8f3fcca02
move rnd logic to RandomContext
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1144 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
a307c8f58f
Expose the ddl attribute on properties. Set the attribute appropriately for known builtin properties. fixes issue #145
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1137 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
d1dcbd5dfb
implement sql type to DataType conversions specific to access 2016 format
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1132 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
25b31c99f9
some more financial funcs, not all fully working
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1131 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
4fb8409266
Add full support for access 2016 databases including the new 'Large Number' (aka Bigint) data type. Fixes feature #37
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1130 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
0e75ed9111
implement some financial functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1129 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
c84a6dd569
more math unit tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1128 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
389a37297d
handle plus as a unary number modifier; handle precedence of plus/minus in more confusing math expressions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1127 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
774d505946
long type should be int values; implement more date/time and misc other functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1120 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
1f7373e77b
split out function groups; implement numeric functions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1117 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
4cac6717d1
bug fixes and unit tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1116 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
7f3beb13c5
fix some cast functions; more unit tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1115 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
392dfba3ef
add some initial default function unit tests; fix some parse bugs
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1114 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago
James Ahlborn
8368b87ccd
implement a bunch of functions which really need unit tests; add support for calculated field expressions
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1113 f203690c-595d-4dc9-a70b-905162fa7fd2
6 years ago