Skip to content

Commit

Permalink
Fix issues with case sensitivity in sharding and distributed insert p…
Browse files Browse the repository at this point in the history
…lugins (#442)
  • Loading branch information
donhardman authored Jan 14, 2025
1 parent f344f18 commit b0c2d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/Sharding/Payload.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected static function fromCreate(Request $request): static {
$self = new static();
// We just need to do something, but actually its' just for PHPstan
$self->path = $request->path;
$self->type = strpos($request->payload, 'create') === 0 ? 'create' : 'alter';
$self->type = stripos($request->payload, 'create') === 0 ? 'create' : 'alter';
$self->cluster = $matches['cluster'] ?? '';
$self->table = $matches['table'];
$self->structure = $matches['structure'];
Expand Down

0 comments on commit b0c2d25

Please sign in to comment.