Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ikrivosheev
Copy link
Contributor

Fix #10

@long2ice
Copy link
Owner

long2ice commented Mar 24, 2021

Could you add tests to execute sql to show it's correct? There is a ClickHouse instance when run CI

@long2ice
Copy link
Owner

In fact I don't know why #10 happened, insert is tested in tests before

@ikrivosheev
Copy link
Contributor Author

@long2ice I see some sql tests in tests/test_cursor.py. Which tests do you want?

@ikrivosheev
Copy link
Contributor Author

In fact I don't know why #10 happened, insert is tested in tests before

Simple test to reproduce:

stream_data = b"1234"
stream_reader = StreamReader()
stream_reader.feed_data(stream_data)
reader = BufferedReader(stream_reader, 1)

await reader.read_bytes(4)
await reader.read_varint()

@long2ice
Copy link
Owner

Test the error one you show there

@ikrivosheev
Copy link
Contributor Author

@long2ice Done

@long2ice long2ice merged commit c967e23 into long2ice:master Mar 24, 2021
@long2ice
Copy link
Owner

Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception

2 participants