Skip to content

Commit

Permalink
Fixed the handling of incorrect bulk insert
Browse files Browse the repository at this point in the history
  • Loading branch information
nick committed Nov 13, 2024
1 parent 5d89277 commit d07dc00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Plugin/EmptyString/Payload.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static function fromRequest(Request $request): static {
* @return bool
*/
public static function hasMatch(Request $request): bool {
return ($request->payload === '' && $request->endpointBundle !== Endpoint::Elastic) ||
return ($request->payload === ''
&& $request->endpointBundle !== Endpoint::Bulk && $request->endpointBundle !== Endpoint::Elastic) ||
stripos($request->payload, 'set sql_quote_show_create') === 0 ||
stripos($request->payload, 'set @saved_cs_client') === 0 ||
stripos($request->payload, 'set @@session') === 0 ||
Expand Down

0 comments on commit d07dc00

Please sign in to comment.