Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1105

Closed
Open
Created Jul 18, 2012 by Administrator@rootOwner

Postgres: Polymorphic association for Issue

Created by: moskvin

I am using postgres for gitlab. After upgrade version I get an error if you click on the Issue:

ActionView::Template::Error (PG::Error: ERROR:  operator does not exist: character varying = integer
LINE 1: ...OUNT(*) FROM "notes"  WHERE "notes"."noteable_id" = 61 AND "...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT COUNT(*) FROM "notes"  WHERE "notes"."noteable_id" = 61 AND "notes"."noteable_type" = 'Issue'):
    7:         %i.icon-tag
    8:         = label.name
    9:     - if issue.notes.any?
    10:       %span.btn.small.disabled.grouped
    11:         %i.icon-comment
    12:         = issue.notes.count
    13:     - if can? current_user, :modify_issue, issue
  app/views/issues/_show.html.haml:10:in `_app_views_issues__show_html_haml__2173434730988287540_64734340'
  app/views/dashboard/issues.html.haml:15:in `block (2 levels) in _app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
  app/views/dashboard/issues.html.haml:14:in `each'
  app/views/dashboard/issues.html.haml:14:in `block in _app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
  app/views/dashboard/issues.html.haml:9:in `each'
  app/views/dashboard/issues.html.haml:9:in `_app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
  app/controllers/dashboard_controller.rb:31:in `issues'
Assignee
Assign to
Time tracking