Merge pull request #31766 from kssenii/odbc-fix

Fix crash with empty result on odbc query
This commit is contained in:
Kseniia Sumarokova 2021-12-01 21:51:08 +03:00 committed by GitHub
commit 563b615904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,8 @@ CascadeWriteBuffer::CascadeWriteBuffer(WriteBufferPtrs && prepared_sources_, Wri
void CascadeWriteBuffer::nextImpl()
{
if (!curr_buffer)
return;
try
{
curr_buffer->position() = position();