| @@ 525-531 (lines=7) @@ | ||
| 522 | private function _parseQueryParams(string $sql, array $params = []): array |
|
| 523 | { |
|
| 524 | // is there anything to parse? |
|
| 525 | if ( |
|
| 526 | \strpos($sql, '?') === false |
|
| 527 | || |
|
| 528 | \count($params) === 0 |
|
| 529 | ) { |
|
| 530 | return ['sql' => $sql, 'params' => $params]; |
|
| 531 | } |
|
| 532 | ||
| 533 | static $PARSE_KEY_CACHE = null; |
|
| 534 | if ($PARSE_KEY_CACHE === null) { |
|
| @@ 813-819 (lines=7) @@ | ||
| 810 | public function _parseQueryParamsByName(string $sql, array $params = []): array |
|
| 811 | { |
|
| 812 | // is there anything to parse? |
|
| 813 | if ( |
|
| 814 | \strpos($sql, ':') === false |
|
| 815 | || |
|
| 816 | \count($params) === 0 |
|
| 817 | ) { |
|
| 818 | return ['sql' => $sql, 'params' => $params]; |
|
| 819 | } |
|
| 820 | ||
| 821 | static $PARSE_KEY_CACHE = null; |
|
| 822 | if ($PARSE_KEY_CACHE === null) { |
|