long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.

Home Page:https://github.com/long2ice/asynch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

with_column_types=True, but there are no column types

ghuname opened this issue · comments

Why code:

import asyncio
from asynch import connect


async def main():
    conn = await connect(
        host="127.0.0.1",
        port=2714,
        database="default",
    )

    async with conn.cursor() as cursor:
        await cursor.execute("SELECT 1")
        ret = cursor.fetchone()
        print(ret)
		
		
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait([main()]))

returns:
(1,)

with no column types?

In the line

response = await execute(query, args=args, with_column_types=True, **execute_kwargs)
, I can see with_column_types=True, but you are not returning them.

@long2ice Can you please answer to this issue?

Maybe bug there, PR is welcome

Why you closed this issue?