Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UserVarEvent #44

Closed
wants to merge 46 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f4f4316
Feat: implement rand_event
starcat37 Jul 27, 2023
cc8f7ff
fix: change number of testcases
heehehe Jul 27, 2023
13efa87
Add property for rand event
mjs1995 Jul 27, 2023
c3be8c9
fix: rename seed to _seed
mjs1995 Jul 27, 2023
f8324cc
test: add test_rand_event
heehehe Jul 29, 2023
6511f85
test: move statement setting to setUp
heehehe Jul 29, 2023
f267674
Chore: Delete unnecessary comment
starcat37 Jul 29, 2023
ce87120
Chore: delete unnecessary venv/* in .gitignore
starcat37 Jul 29, 2023
bf9ec0b
comment: add rand_event warning description
heehehe Jul 29, 2023
ccd5b86
refactor: change RandEvent import position
heehehe Jul 29, 2023
b12b7fe
revert: remove resume_stream=True in example
heehehe Jul 29, 2023
9f13346
test: add rand event seed type
sean-k1 Aug 2, 2023
dd8079c
test: add test_rand_event
mikaniz Jul 29, 2023
ff4d184
test: move statement setting to setUp
heehehe Jul 29, 2023
baad3a9
Chore: Delete unnecessary comment
starcat37 Jul 29, 2023
f04e228
Chore: delete unnecessary venv/* in .gitignore
starcat37 Jul 29, 2023
af6425d
comment: add rand_event warning description
heehehe Jul 29, 2023
243f099
refactor: change RandEvent import position
heehehe Jul 29, 2023
2edca88
revert: remove resume_stream=True in example
heehehe Jul 29, 2023
6fda545
test: add rand event seed type
sean-k1 Aug 2, 2023
7928c37
Merge branch 'feature/rand-event' of github.com:23-OSSCA-python-mysql…
heehehe Aug 5, 2023
66c6069
comment: add description for attributes
heehehe Aug 5, 2023
7aa81b4
Feat: implement UserVarEvent
mjs1995 Aug 7, 2023
795f12a
fix: change number of testcases
mjs1995 Aug 7, 2023
9a985d6
docs: add name_len ivar comment
heehehe Aug 7, 2023
f3b0012
test: add user_var_event test
heehehe Aug 7, 2023
832a887
Add type_codes for UserVarEvent
mjs1995 Aug 12, 2023
e7c1b10
Refactor UserVarEvent and add decimal parsing
mjs1995 Aug 16, 2023
e7cecc4
test: add user_var_event tests by types
heehehe Aug 19, 2023
8c5d321
test: fix int / decimal table creation
heehehe Aug 19, 2023
0c2a4bd
test: fix int_event error
heehehe Aug 19, 2023
b13f1dd
fix unpacking of REAL_RESULT and adjust assertion
mjs1995 Aug 20, 2023
799baaa
feat: modify read int by using packet.read
heehehe Aug 20, 2023
5bde42a
refactor : type code and type method
sean-k1 Aug 26, 2023
4dabf14
fix: modify negative decimal extract process
heehehe Aug 26, 2023
69e296e
Merge branch 'main' into feature/user-var-event
heehehe Aug 26, 2023
b890ec6
fix: modify test_allowed_event_list
heehehe Aug 26, 2023
e48369e
remove: duplicated TestStatementConnectionSetting
mjs1995 Aug 27, 2023
047f429
refactor: add _read_new_decimal to BinLogEvent method
heehehe Aug 30, 2023
8c69c47
fix: modify _read_new_decimal return type
heehehe Aug 30, 2023
180c866
Feat: modify _read_int function
starcat37 Aug 31, 2023
005f645
Merge branch 'feature/user-var-event' of https://github.com/23-OSSCA-…
starcat37 Aug 31, 2023
d3f8b4f
refactor: add type hints and optimize read methods
mjs1995 Aug 31, 2023
de6d8e7
test: add user_var_event tests by types
mikaniz Aug 31, 2023
9d53176
revert: move __read_new_decimal back to row_event
heehehe Aug 31, 2023
b51bcfa
Merge branch 'main' into feature/user-var-event
mjs1995 Aug 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: change number of testcases
mjs1995 committed Aug 7, 2023
commit 795f12a25ca5fe480bcc02371bfef19674661740
6 changes: 3 additions & 3 deletions pymysqlreplication/tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -25,9 +25,9 @@ def ignoredEvents(self):
return [GtidEvent]

def test_allowed_event_list(self):
self.assertEqual(len(self.stream._allowed_event_list(None, None, False)), 17)
self.assertEqual(len(self.stream._allowed_event_list(None, None, True)), 16)
self.assertEqual(len(self.stream._allowed_event_list(None, [RotateEvent], False)), 16)
self.assertEqual(len(self.stream._allowed_event_list(None, None, False)), 18)
self.assertEqual(len(self.stream._allowed_event_list(None, None, True)), 17)
self.assertEqual(len(self.stream._allowed_event_list(None, [RotateEvent], False)), 17)
self.assertEqual(len(self.stream._allowed_event_list([RotateEvent], None, False)), 1)

def test_read_query_event(self):