You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -325,11 +325,6 @@ parameters:
325
325
count:1
326
326
path:src/Components/OptionsArray.php
327
327
328
-
-
329
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:\\$options \\(array\\<int, mixed\\>\\) does not accept array\\<int\\|string, mixed\\>\\.$#"
WITH RECURSIVE number_sequence AS (SELECT 1 AS `number` UNION ALL SELECT `number`+ 1 FROM number_sequence WHERE `number` < 5) SELECT * FROM number_sequence
SELECT n + 1, CONCAT(str, str) FROM cte WHERE n < 3
115
+
), cte2 AS
116
+
(
117
+
SELECT 1 AS n, CAST('def' AS CHAR(20)) AS str
118
+
UNION ALL
119
+
SELECT n + 1, CONCAT(str, str) FROM cte WHERE n < 3
120
+
)
121
+
SELECT * FROM cte UNION SELECT * FROM cte2;
122
+
SQL;
123
+
124
+
$lexer = newLexer($sql);
125
+
126
+
$lexerErrors = $this->getErrorsAsArray($lexer);
127
+
$this->assertCount(0, $lexerErrors);
128
+
$parser = newParser($lexer->list);
129
+
$parserErrors = $this->getErrorsAsArray($parser);
130
+
$this->assertCount(0, $parserErrors);
131
+
$this->assertCount(1, $parser->statements);
132
+
133
+
// phpcs:disable Generic.Files.LineLength.TooLong
134
+
$expected = <<<SQL
135
+
WITH RECURSIVE cte AS (SELECT 1 AS `n`, CAST('abc' AS CHAR(20)) AS `str` UNION ALL SELECT n+ 1, CONCAT(str, str) FROM cte WHERE n < 3), cte2 AS (SELECT 1 AS `n`, CAST('def' AS CHAR(20)) AS `str` UNION ALL SELECT n+ 1, CONCAT(str, str) FROM cte WHERE n < 3) SELECT * FROM cte UNION SELECT * FROM cte2
0 commit comments