Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2145

Ordering.setNullSortedFirst(...) doesn't do anything on MySQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1, 3.1.1
    • None
    • Database integration
    • None
    • Mac OSX

    Description

      In an ordered result set, rows with a NULL value in a column which is part of the ordering can come at the beginning or at the end of the results.

      As I understand it, Cayenne's setNullSortedFirst on the Ordering class is supposed to switch between these two options, the default being true, i.e. rows with a NULL come at the start. However, I've set this to false in Cayenne 3.1.1 on MySQL, it doesn't have any effect. I put a breakpoint on the accessor for this boolean. It never seems to be read by Cayenne's OrderingTranslator class.

      MySQL version: Ver 14.14 Distrib 5.6.25, for osx10.8

      Attachments

        Activity

          People

            Unassigned Unassigned
            josh.singer@glasgow.ac.uk Joshua Singer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: