Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support PostgreSQL #27

Open
DinaMagdalina opened this issue Aug 11, 2017 · 0 comments
Open

Not support PostgreSQL #27

DinaMagdalina opened this issue Aug 11, 2017 · 0 comments

Comments

@DinaMagdalina
Copy link

The extension does not work with PostgreSQL.
Drops on this request:

SELECT COUNT (*)
FROM (
          SELECT MAX ("id") AS "last_message_id", IF ("sender_id" = 1, "receiver_id", "sender_id") AS "contact_id", 1 AS "user_id"
          FROM "simplechat_message" "c"
          WHERE ("receiver_id" = 1) AND ("is_deleted_by_receiver" = FALSE)) OR (("sender_id" = 1) AND ("is_deleted_by_sender" = FALSE)) GROUP BY "contact_id"
      ) "C"

Error:

SQLSTATE[42883]: Undefined function: 7 ERROR: function if(boolean, integer, integer) does not exist
LINE 1: ...T(*) FROM (SELECT MAX("id") AS "last_message_id", IF("sender...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant