New global read lock code Fixed bug in DATETIME with WHERE optimization Made UNION code more general.