Skip to content

Commit f485888

Browse files
committed
Merge #416 - Fix error message "Lock" to "LOCK"
Pull-request: #416 Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents 573f794 + 95c331a commit f485888

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

locale/sqlparser.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ msgid "Unexpected end of LOCK expression."
143143
msgstr ""
144144

145145
#: src/Components/LockExpression.php:204
146-
msgid "Unexpected end of Lock expression."
146+
msgid "Unexpected end of LOCK expression."
147147
msgstr ""
148148

149149
#: src/Components/OptionsArray.php:151

src/Components/LockExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private static function parseLockType(Parser $parser, TokensList $list)
198198

199199
// Only two possible end states
200200
if ($state !== 1 && $state !== 3) {
201-
$parser->error('Unexpected end of Lock expression.', $prevToken);
201+
$parser->error('Unexpected end of LOCK expression.', $prevToken);
202202
}
203203

204204
return $lockType;

tests/data/parser/parseLockErr2.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
0
516516
],
517517
[
518-
"Unexpected end of Lock expression.",
518+
"Unexpected end of LOCK expression.",
519519
null,
520520
0
521521
]

tests/data/parser/parseLockErr7.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
0
523523
],
524524
[
525-
"Unexpected end of Lock expression.",
525+
"Unexpected end of LOCK expression.",
526526
null,
527527
0
528528
]

tests/data/parser/parseLockErr9.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@
533533
0
534534
],
535535
[
536-
"Unexpected end of Lock expression.",
536+
"Unexpected end of LOCK expression.",
537537
{
538538
"@type": "@12"
539539
},

0 commit comments

Comments
 (0)