Skip to content

Commit d342128

Browse files
Hot fix CAST in migration to unsigned
1 parent 2022f9d commit d342128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/db_changelog/db.changelog-0.3.9.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@
296296
END IF;
297297

298298
ELSE
299-
IF EXISTS (SELECT * FROM issues WHERE project_id=my_project_id AND title=CAST(my_test_resolution_id as CHAR(50))) THEN
300-
SELECT id INTO @my_current_issue FROM issues WHERE project_id=my_project_id AND title=CAST(my_test_resolution_id as CHAR(50));
299+
IF EXISTS (SELECT * FROM issues WHERE project_id=my_project_id AND title=CAST(my_test_resolution_id as unsigned)) THEN
300+
SELECT id INTO @my_current_issue FROM issues WHERE project_id=my_project_id AND title=CAST(my_test_resolution_id as unsigned);
301301

302302
call INSERT_ISSUE(@my_current_issue, my_test_resolution_id, my_test_resolution_id, '', '', my_assignee, '', '', '', my_project_id, '1');
303303

0 commit comments

Comments
 (0)