Skip to content

Using UrlHum with Postgres results in internal server errors #29

Closed

Description

@davidolrik

When using PostgreSQL as database, all pages that use queries with IFNULL results in internal an server error as this is a MySQL only function.

As a temporary workaround I have changed it to COALESCE locally.

I suggest moving this logic into the application and handle the possibility of null in code using something like $value ?? "default".

Activity

  1. optiroot commented on May 14, 2019

    @optiroot
    Member

    Hello!
    Thank you for opening the issue.
    Yes, actually UrlHum doesn't work with PostgreSQL, but it is planned. As you can see in the docs it is stated that UrlHum has been tested with mySQL only.
    I will update the project soon to be able to work with PostgreSQL.
    Thanks!

  2. optiroot commented on May 15, 2019

    @optiroot
    Member

    Fixed this! Also, I managed to clean up some code using Laravel Relationships.
    Now the project is cleaner and works perfectly with PostgreSQL too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement of existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions