Skip to content

Commit db8be83

Browse files
committed
Merge remote-tracking branch 'origin/1.4.x' into 1.5.x
2 parents b426bc5 + 7f83911 commit db8be83

7 files changed

+25
-1
lines changed

src/Tokenizer.php

+1
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ final class Tokenizer
412412
'OUTER JOIN',
413413
'RIGHT JOIN',
414414
'RIGHT OUTER JOIN',
415+
'STRAIGHT_JOIN',
415416
'XOR',
416417
];
417418

tests/clihighlight.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1179,3 +1179,9 @@ MY_NON_TOP_LEVEL_KEYWORD_FX_3();
11791179
DBMS_OUTPUT.PUT_LINE(i);
11801180
END LOOP;
11811181
END;
1182+
---
1183+
SELECT
1184+
a
1185+
FROM
1186+
test
1187+
STRAIGHT_JOIN test2 ON test.id = test2.id

tests/compress.txt

+2
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ SELECT ( SELECT * FROM T LIMIT 5 OFFSET 10 ) PostgreSQL_offset_10_limit_5, ( SEL
105105
begin try insert into [t] ([name], [int], [float], [null]) values (N'Ewa', 1, 1.0, null); end try begin catch if ERROR_NUMBER() = 544 begin set IDENTITY_INSERT [t] on; begin try insert into [t] ([name], [int], [float], [null]) values (N'Ewa', 1, 1.0, null); set IDENTITY_INSERT [t] off; end try begin catch set IDENTITY_INSERT [t] off; throw; end catch end else begin throw; end end catch
106106
---
107107
BEGIN FOR i IN 1..5 LOOP DBMS_OUTPUT.PUT_LINE(i); END LOOP; END;
108+
---
109+
SELECT a FROM test STRAIGHT_JOIN test2 ON test.id = test2.id

tests/format-highlight.html

+6
Original file line numberDiff line numberDiff line change
@@ -1179,3 +1179,9 @@
11791179
<span style="color: #333;">DBMS_OUTPUT</span><span >.</span><span style="color: #333;">PUT_LINE</span>(<span style="color: #333;">i</span>)<span >;</span>
11801180
<span style="font-weight:bold;">END</span> <span style="color: #333;">LOOP</span><span >;</span>
11811181
<span style="font-weight:bold;">END</span><span >;</span></pre>
1182+
---
1183+
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span>
1184+
<span style="color: #333;">a</span>
1185+
<span style="font-weight:bold;">FROM</span>
1186+
<span style="color: #333;">test</span>
1187+
<span style="font-weight:bold;">STRAIGHT_JOIN</span> <span style="color: #333;">test2</span> <span style="font-weight:bold;">ON</span> <span style="color: #333;">test</span><span >.</span><span style="color: #333;">id</span> <span >=</span> <span style="color: #333;">test2</span><span >.</span><span style="color: #333;">id</span></pre>

tests/format.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1177,3 +1177,9 @@ BEGIN
11771177
DBMS_OUTPUT.PUT_LINE(i);
11781178
END LOOP;
11791179
END;
1180+
---
1181+
SELECT
1182+
a
1183+
FROM
1184+
test
1185+
STRAIGHT_JOIN test2 ON test.id = test2.id

tests/highlight.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -407,4 +407,5 @@
407407
<span style="color: #333;">DBMS_OUTPUT</span><span >.</span><span style="color: #333;">PUT_LINE</span>(<span style="color: #333;">i</span>)<span >;</span>
408408
<span style="font-weight:bold;">END</span> <span style="color: #333;">LOOP</span><span >;</span>
409409
<span style="font-weight:bold;">END</span><span >;</span></pre>
410-
410+
---
411+
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span> <span style="color: #333;">a</span> <span style="font-weight:bold;">FROM</span> <span style="color: #333;">test</span> <span style="font-weight:bold;">STRAIGHT_JOIN</span> <span style="color: #333;">test2</span> <span style="font-weight:bold;">ON</span> <span style="color: #333;">test</span><span >.</span><span style="color: #333;">id</span> <span >=</span> <span style="color: #333;">test2</span><span >.</span><span style="color: #333;">id</span></pre>

tests/sql.sql

+2
Original file line numberDiff line numberDiff line change
@@ -407,3 +407,5 @@ BEGIN
407407
DBMS_OUTPUT.PUT_LINE(i);
408408
END LOOP;
409409
END;
410+
---
411+
SELECT a FROM test STRAIGHT_JOIN test2 ON test.id = test2.id

0 commit comments

Comments
 (0)