Testing revealed a situation in which a "CTDB-Invalid date month" error was seen when selecting in SQL a record immediately after it had been inserted if the record had datetime columns mapped into 4-byte BinaryUnsigned. The logic has been modified to correct this.