• Thomas G. Lockhart's avatar
    Allows the following query to succeed: "SELECT NULL ORDER BY 1;" · 7665e7b0
    Thomas G. Lockhart authored
    There are three or four cases in transformSortClause() and I had fixed
    only one case for UNION. A second case is now fixed, in the same way; I
    assigned INT4OID to the column type for the "won't actually happen"
    sort. Didn't want to skip the code entirely, since the backend needs to
    _try_ a sort to get the NULLs right. I'm not certain under what
    circumstances the other cases are invoked and these are not yet
    fixed up, though perhaps they don't need to be...
    7665e7b0
parse_clause.c 13.8 KB