Merge lp:~tjoneslo/akiban-server/rest-parse-dates-timestamp into lp:~akiban-technologies/akiban-server/trunk
Proposed by
Thomas Jones-Low
Status: | Merged |
---|---|
Approved by: | Nathan Williams |
Approved revision: | 2612 |
Merged at revision: | 2607 |
Proposed branch: | lp:~tjoneslo/akiban-server/rest-parse-dates-timestamp |
Merge into: | lp:~akiban-technologies/akiban-server/trunk |
Diff against target: |
178 lines (+61/-12) 4 files modified
src/main/java/com/akiban/ais/model/aisb2/AISBBasedBuilder.java (+14/-4) src/main/java/com/akiban/ais/model/aisb2/NewUserTableBuilder.java (+3/-0) src/main/java/com/akiban/server/entity/changes/EntityParser.java (+20/-3) src/test/java/com/akiban/server/entity/changes/EntityParserIT.java (+24/-5) |
To merge this branch: | bzr merge lp:~tjoneslo/akiban-server/rest-parse-dates-timestamp |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nathan Williams | Approve | ||
Thomas Jones-Low | Needs Resubmitting | ||
Review via email: mp+156384@code.launchpad.net |
Description of the change
Add datetime discovery for the REST EntityParser.
Now performs two checks on strings to see if they might be, and exactly match, a ISO formatted date time. If so, create the column as a timestamp rather than a string.
To post a comment you must log in.
TIMESTAMP is a little funny, so we may want to add a colDatetime to get a DATETIME instead. Otherwise looks as I would expect.