Skip to content

Commit af6425d

Browse files
committed
comment: add rand_event warning description
1 parent f04e228 commit af6425d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymysqlreplication/event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ class RandEvent(BinLogEvent):
440440
"""
441441
RandEvent is generated every time a statement uses the RAND() function.
442442
Indicates the seed values to use for generating a random number with RAND() in the next statement.
443+
Warning
444+
- RAND_EVENT only works in statement-based logging. (need to set binlog_format as 'STATEMENT')
445+
- RAND_EVENT only works when the seed number is not specified.
443446
444447
Attributes:
445448
seed1

0 commit comments

Comments
 (0)