Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
XI
Browse files Browse the repository at this point in the history
  • Loading branch information
mondrake committed Aug 31, 2023
1 parent bcffb1a commit 7cd0e37
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Driver/Database/mysqli/NamedPlaceholderConverter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Drupal\mysqli\Driver\Database\mysqli\Parser;
namespace Drupal\mysqli\Driver\Database\mysqli;

/**
* The SQL parser that focuses on identifying prepared statement parameters. It implements parsing other tokens like
Expand Down Expand Up @@ -39,9 +39,8 @@ final class NamedPlaceholderConverter
/** @var list<mixed> */
private array $convertedParameters = [];

public function __construct()
{
$patterns = [
public function __construct() {
$this->sqlPattern = sprintf('(%s)', implode('|', [
$this->getAnsiSQLStringLiteralPattern("'"),
$this->getAnsiSQLStringLiteralPattern('"'),
self::BACKTICK_IDENTIFIER,
Expand All @@ -50,8 +49,7 @@ public function __construct()
self::ONE_LINE_COMMENT,
self::MULTI_LINE_COMMENT,
self::OTHER,
];
$this->sqlPattern = sprintf('(%s)', implode('|', $patterns));
]));
}

/**
Expand Down

0 comments on commit 7cd0e37

Please sign in to comment.