Skip to content

Commit

Permalink
Use null schema response for SYS TABLES command. (#46386)
Browse files Browse the repository at this point in the history
(cherry picked from commit a6152f4)
  • Loading branch information
astefan committed Sep 9, 2019
1 parent 41414e1 commit 016241c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE mock (
SELF_REFERENCING_COL_NAME VARCHAR,
REF_GENERATION VARCHAR
) AS
SELECT '', 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
SELECT null, 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
UNION ALL
SELECT '', 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
SELECT null, 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE mock (
SELF_REFERENCING_COL_NAME VARCHAR,
REF_GENERATION VARCHAR
) AS
SELECT '', 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
SELECT null, 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
UNION ALL
SELECT '', 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
SELECT null, 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL
;
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public final void execute(SqlSession session, ActionListener<Page> listener) {
.sorted(Comparator.<IndexInfo, String> comparing(i -> legacyName(i.type()))
.thenComparing(Comparator.comparing(i -> i.name())))
.map(t -> asList(cluster,
EMPTY,
null,
t.name(),
legacyName(t.type()),
EMPTY,
Expand Down

0 comments on commit 016241c

Please sign in to comment.