James Ahlborn
112cb827e9
Ignore column validators for read-only dbs. This will avoid irrelevant failures when reading databases which have invalid column properties. Fixes #150
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1240 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
d209a57058
implement Format with predefined formats
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1226 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
8c64c96af6
currency format uses parens; add bool predefined formats
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1225 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
276ed56910
cache and reuse DecimalFormat instances
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1222 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
ac6811e50d
implement FormatDateTime function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1221 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
25069267eb
implement FormatCurrency and FormatPercent
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1220 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
fedeb0bc35
fill out remaining tests for FormatNumber
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1219 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
a2a57f1c3c
add more numeric config
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1218 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
b1fa4abea5
implement DateDiff function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1216 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
45699400f0
implement replace function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1215 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
504a1d8c0b
implement Val function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1214 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
James Ahlborn
45f64df5c5
finish DateAdd function
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1213 f203690c-595d-4dc9-a70b-905162fa7fd2
5 years ago
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
5 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
5 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
5 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
5 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