http://tracker.firebirdsql.org/browse/CORE-2897