Improve tests for localtime() calls for NULL text values
authorMichael Paquier <michael@otacoo.com>
Mon, 25 Apr 2016 05:34:40 +0000 (14:34 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 30 Apr 2016 23:25:44 +0000 (08:25 +0900)
commit34cdbd1f430545f93a5317682eb12bb5cff8ecf4
treefaa5b02eddb0810b5adaefc80a434be6d3977342
parent13f905cc1ac08e2779d5c0b6c7f6e259669e33d1
Improve tests for localtime() calls for NULL text values

The ODBC driver allocates by default values for year, day and month
depending on result of localtime() when those fields are not filled by
the client during a cast operation. This commit adds some tests to make
sure that those code paths are working correctly.
test/expected/result-conversions.out
test/src/result-conversions-test.c