We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed39076 commit cf0b3c7Copy full SHA for cf0b3c7
tests/test_commands.py
@@ -228,13 +228,17 @@ def test_sql_comments(self):
228
SELECT 1;
229
-- Another SELECT statement.
230
SELECT 2;
231
+-- Yet another SELECT statement with an inline comment.
232
+-- Other than the regular comments, it gets passed through to the database server.
233
+SELECT /* this is a comment */ 3;
234
"""
235
cmd = CrateShell()
236
cmd._exec_and_print = MagicMock()
237
cmd.process_iterable(sql.splitlines())
238
cmd._exec_and_print.assert_has_calls([
239
call("SELECT 1"),
240
call("SELECT 2"),
241
+ call("SELECT /* this is a comment */ 3"),
242
])
243
244
def test_js_comments(self):
0 commit comments