• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Moln / php-mysql-replication / 7579707553

19 Jan 2024 05:07AM UTC coverage: 80.809% (-0.02%) from 80.826%
7579707553

push

github

web-flow
Merge branch `krowinski master`  (#16)

* Sync `krowinski:master` into master:

- Fix JsonBinaryDecoder when there is NULL in data or if there is long.
- Preserve threadId in QUERY_EVENT.

* Fix CS

---------

Co-authored-by: xiemaomao <xiemaomao@enjoymi.com>

1259 of 1558 relevant lines covered (80.81%)

26.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/MySQLReplication/Event/GtidEvent.php
1
<?php
2
declare(strict_types=1);
3

4
namespace MySQLReplication\Event;
5

6
use MySQLReplication\Event\DTO\GTIDLogDTO;
7

8
class GtidEvent extends EventCommon
9
{
10
    public function makeGTIDLogDTO(): GTIDLogDTO
11
    {
12
        $commitFlag = 1 === $this->binaryDataReader->readUInt8();
×
13
        $sid = unpack('H*', $this->binaryDataReader->read(16))[1];
×
14
        $gno = $this->binaryDataReader->readUInt64();
×
15

16
        $gtid = vsprintf('%s%s%s%s%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s%s%s%s%s%s%s%s%s', str_split($sid)) . ':' . $gno;
×
17

18
        $this->eventInfo->getBinLogCurrent()->setGtid($gtid);
×
19

20
        return new GTIDLogDTO(
×
21
            $this->eventInfo,
×
22
            $commitFlag,
×
23
            $gtid
×
24
        );
×
25
    }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc