예제 #1
0
        protected override bool CastLiteral(ColumnDescriptor column)
        {
            // if union column is not typed as varchar, it will use char(max_literal_length) type with values padded with spaces
            var dataType = column.DataType;

            if (dataType == DataType.Undefined)
            {
                dataType = column.GetConvertedDbDataType().DataType;
            }

            return(dataType is DataType.VarChar or DataType.NVarChar);
        }