Emulate support for non-specified column by using the first and, if necessary, last columns in this case.