Skip to content

Commit 5ae6fbb

Browse files
committed
Fix #8659 - Firebird 6.0. ISQL SHOW DB command error.
1 parent 9266b5e commit 5ae6fbb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/isql/FrontendParser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ FrontendParser::AnyNode FrontendParser::internalParse()
120120
} while(true);
121121
}
122122
else if (command == TOKEN_COPY)
123-
{
123+
{
124124
CopyNode node;
125125

126126
if (auto source = parseQualifiedName())
@@ -462,6 +462,7 @@ FrontendParser::AnyShowNode FrontendParser::parseShow()
462462
static constexpr std::string_view TOKEN_COLLATIONS("COLLATIONS");
463463
static constexpr std::string_view TOKEN_COMMENTS("COMMENTS");
464464
static constexpr std::string_view TOKEN_DATABASE("DATABASE");
465+
static constexpr std::string_view TOKEN_DB("DB");
465466
static constexpr std::string_view TOKEN_DEPENDENCIES("DEPENDENCIES");
466467
static constexpr std::string_view TOKEN_DEPENDENCY("DEPENDENCY");
467468
static constexpr std::string_view TOKEN_DOMAINS("DOMAINS");
@@ -511,7 +512,7 @@ FrontendParser::AnyShowNode FrontendParser::parseShow()
511512
if (parseEof())
512513
return ShowCommentsNode();
513514
}
514-
else if (text == TOKEN_DATABASE)
515+
else if (text == TOKEN_DATABASE || text == TOKEN_DB)
515516
{
516517
if (parseEof())
517518
return ShowDatabaseNode();

0 commit comments

Comments
 (0)