createissue with sudo failing
Created by: ccurvey
when trying to create an issue with the api call to createissue and supplying a value for sudo, I'm getting a stack trace within gitlab. the nexus of the problem is:
ActiveRecord::StatementInvalid (PG::Error: ERROR: operator does not exist: character varying = integer
LINE 1: SELECT "users".* FROM "users" WHERE (username = 27 OR id =...
The problems is that it is trying to compare a varchar column with an integer value.
(I'm using a PostgreSQL 9.2 database)