Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-274

Postgres expects boolean value in queries, not '1'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.8.1
    • 0.9.9
    • None
    • Debian unstable, Jetty, Postgres, IBM Java 1.4.1

    Description

      Location:
      org.roller.business.hibernate.RefererManagerImpl.getDaysPopularWebsites

      Line 184 contains "... and u.userenabled=1"
      This is illegal under postresql as it expects a boolean value, not an integer. Changing the line to "... and u.userenabled=true" fixes the problem and should work in any reasonable database.

      Attachments

        Activity

          People

            djohnson David Johnson
            tarka Steve Smith
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: