Closed yunyu closed 8 months ago
It looks like this behavior is caused by:
Which calls _read_query_result()
even before fetchone/etc are called. I'm not sure if this behavior is correct, but in this case self.connection.resp
is none presumably because CREATE TABLE
doesn't return anything.
Describe what's wrong
CHDB's dbapi implementation does not work for basic queries like
CREATE TABLE
that return no data. I am using DBAPI for sqlalchemy compatibility.Does it reproduce on recent release?
Yes, reproduced on
chdb==1.0.2
How to reproduce
Expected behavior
Execute succeeds without an exception
Error message and/or stacktrace
Additional context
This seems to work fine in the non DBAPI implementation.