Development
Development
Development
Development
Development
Development
@Markus: Hey, that's a great trick with the getObject(). @Marco: This works because under Java7, these getObject() methods satisfy the 2 new interface methods in the Java7 version of CallableStatement. But under Java6, these methods will just compile as normal methods, without overriding anything because they don't have an @Override. I verified that this compiles under (Eclipse, Ubuntu 17.10, Java6) and (Maven, Ubuntu 17.10, Java8). pom.xml: #62-64: Just cruious, why do are $hsqldbVersion and $jackcessVersion...
LoadJet.java, #403-415: I think you can use replace() instead of replaceAll(), since we don't need to use regular expressions here. Other than that, lgtm.
Development
Home
Ok, thanks for the explanations. @gord: Since this is testing the insertion of a big value into the MEMO type, how about we insert a string longer than 64k characters into here? According to the docs I see on the web, a MEMO field (now called LONG TEXT) should be able to handle > 64k, even though certain widgets in Access will only display the first 64k characters. Secondly, instead of assertEqual() on the first and last few characters, I think we can just assertEquals() on the entire string. Putting...
Hi Gord, Sorry for the long delay with this, been a bit distracted with other things. InsertBigTest.java 1) I'm a bit confused about what this is the "big" thing being tested. Is it testing the big id (6666554) or is it testing the big value (a string with 10000 newlines)? In any case, I support your change to remove the dump() and actually do some asserts. I think you can just remove the comments regarding why you commented out the dump(). 2) While you are touching this file, can you clean up the...
lgtm (looks good to me)
Remove <excludes> tags from Surefire config so that "mvn test -DskipTests=false" actually works. It looks like <excludes> tag take precedence over the <includes> tag, which prevents any Java tests from matching.
Fix modelVersion and veresion tags. The wrong tag was incremented to 4.0.1
Fix incorrect SimpleDateFormat which outputs 12:00:00 for midnight in the "export" command. Add unit test which caugh this.
Print UTF-8 byte order mark if --bom flag is given.
Rollback accidental commit of changes to pom.xml which are not ready.
Add --newlines flag to preserve embedded newlines when exporting to CSV.
Reformat to use tabs everywhere, instead of mixing spaces and tabs. Cleaned up some indents. No functional changes.
Allow '--' to stop flag parsing.
Move code related to CSV dump into a separate Exporter class with new unit tests. No functional changes.
Add support for AllUnitTests. Add first unit test, MainTest.
Better escaping of exported CSV fields with embedded delimiters and quotes. Add -d flag to change delimiter. Add -t flag to export large tables directly.
Upgrade Main.tokenizer() to support single and double quoted tokens with embedded whitespaces.
Add some clarifying comments to AutoNumberManager.java.
Wrap long JavaDoc comments for readability. No functional change.
Add --big_query_schema flag to export the Google BigQuery schema file.
Pull SimpleDateFormat and DecimalFormat out of the csvDump() inner loop. Don't need to create a new instance of the formatters for each column, just once instance is enough since the entire loop occurs in a single thread. Makes the csvDump() about 2% faster. Cleaned up the code formatting while I was touching this.
Clean up formatting of TypesMap.java for readability. No functional change.
Fix incorrect file extension of temp files from "*mdb" to "*.mdb".
Add Mockito 2.7.22 mocking framework. Add AutoNumberManagerTest as the first example of Mockito.
Add 'export --help' flag.
Add missing '.' at the end of the 'export --help' message. OCD fix.
Add initial Maven support: pom.xml and move jav...