Added test to reproduce the issue.
Added test to reproduce the issue.

(cherry picked from commit 4bc2aa53a1e180c4c4c3b2fde9836d292209978c)

LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db