Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengguanLi committed Jun 27, 2024
1 parent 848822e commit 03cf36f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ private void parseEndDollarQuote(SQLBlockStatement block) {
block.setLanguage(lexer.stringVal());
acceptIdentifier(block.getLanguage());
}
accept(Token.SEMI);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ public void test_0() throws Exception {

List<SQLStatement> statementList = SQLUtils.parseStatements(sql, JdbcConstants.POSTGRESQL);
assertEquals(1, statementList.size());

String output = SQLUtils.toSQLString(statementList, JdbcConstants.POSTGRESQL);
assertEquals("DO $$\n" +
"BEGIN\n" +
"\tGET DIAGNOSTICS n = ROW_COUNT;\n" +
"END $$;",
"END;\n" +
"$$;",
output);
}
}

0 comments on commit 03cf36f

Please sign in to comment.