Adding upstream version 23.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f1aa09959c
commit
27c061b7af
187 changed files with 86502 additions and 71397 deletions
|
@ -85,6 +85,18 @@ x"""
|
|||
],
|
||||
)
|
||||
|
||||
for simple_query in ("SELECT 1\r\n", "\r\nSELECT 1"):
|
||||
tokens = Tokenizer().tokenize(simple_query)
|
||||
tokens = [(token.token_type, token.text) for token in tokens]
|
||||
|
||||
self.assertEqual(
|
||||
tokens,
|
||||
[
|
||||
(TokenType.SELECT, "SELECT"),
|
||||
(TokenType.NUMBER, "1"),
|
||||
],
|
||||
)
|
||||
|
||||
def test_command(self):
|
||||
tokens = Tokenizer().tokenize("SHOW;")
|
||||
self.assertEqual(tokens[0].token_type, TokenType.SHOW)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue