Unable to delete snippet if using PostgreSQL
Created by: munkyboy
Steps to reproduce:
- install gitlab using PostgreSQL
- Create a snippet
- Delete the snippet
Expected results: snippet is deleted
Actual results: Snippet#destroy fails when trying to destroy dependent notes Specifically, PostgreSQL doesn't like to use the numeric ID of the snippet to query the notes.notable_id column
ActiveRecord::StatementInvalid: PG::Error: ERROR: operator does not exist: character varying = integer LINE 1: ...otes".* FROM "notes" WHERE "notes"."noteable_id" = 1 AND "n...
I know PostgreSQL isn't officially supported but I thought I put this out there anyways...