julien-duponchelle / julien-duponchelle/python-mysql-replication

print a var instance GtidEvent,raise a TypeError in mysql 5.7.17.

Open
#206 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
690
PR merge metrics
No merged PRs in 30d

Description

print(debug_info(), idx, event)
var event is instanceof GtidEvent,occur Exception TypeError: ord() expected string of length 1, but int found.

gtid = "%s%s%s%s-%s%s-%s%s-%s%s-%s%s%s%s%s%s" %\
tuple("{0:02x}".format(ord(c)) for c in self.sid)
function ord() need type char, but var c is type int。

Contributor guide

Open the contributing guide

Research direction

Start at GtidEvent's gtid formatting shown in the report, especially conversion of self.sid values, and reproduce the TypeError on MySQL 5.7.17. Done means the event can be printed without the ord() type error and the resulting GTID remains correctly formatted.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.