CORE-919 support for virtual columns

Fixed regression on sqlserver