From 39023145e7b8c431bca3e4e6e3626c677b0e8bfe Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Fri, 5 Jun 2020 08:54:19 +0000 Subject: [PATCH] [TD-524] fix python connector --- src/connector/python/linux/python2/taos/cinterface.py | 1 + src/connector/python/windows/python2/taos/cinterface.py | 1 + src/connector/python/windows/python3/taos/cinterface.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/connector/python/linux/python2/taos/cinterface.py b/src/connector/python/linux/python2/taos/cinterface.py index 1b17bf72b0..e25dad5a73 100644 --- a/src/connector/python/linux/python2/taos/cinterface.py +++ b/src/connector/python/linux/python2/taos/cinterface.py @@ -150,6 +150,7 @@ class CTaosInterface(object): libtaos.taos_fetch_lengths.restype = ctypes.c_void_p libtaos.taos_free_result.restype = None libtaos.taos_errno.restype = ctypes.c_int + libtaos.taos_query.restype = ctypes.POINTER(ctypes.c_void_p) def __init__(self, config=None): ''' diff --git a/src/connector/python/windows/python2/taos/cinterface.py b/src/connector/python/windows/python2/taos/cinterface.py index 9fb7d4ec09..0b446253b7 100644 --- a/src/connector/python/windows/python2/taos/cinterface.py +++ b/src/connector/python/windows/python2/taos/cinterface.py @@ -150,6 +150,7 @@ class CTaosInterface(object): libtaos.taos_fetch_lengths.restype = ctypes.c_void_p libtaos.taos_free_result.restype = None libtaos.taos_errno.restype = ctypes.c_int + libtaos.taos_query.restype = ctypes.POINTER(ctypes.c_void_p) def __init__(self, config=None): ''' diff --git a/src/connector/python/windows/python3/taos/cinterface.py b/src/connector/python/windows/python3/taos/cinterface.py index 0dbb2ce3a1..864a2f5ecb 100644 --- a/src/connector/python/windows/python3/taos/cinterface.py +++ b/src/connector/python/windows/python3/taos/cinterface.py @@ -150,6 +150,7 @@ class CTaosInterface(object): libtaos.taos_fetch_lengths.restype = ctypes.c_void_p libtaos.taos_free_result.restype = None libtaos.taos_errno.restype = ctypes.c_int + libtaos.taos_query.restype = ctypes.POINTER(ctypes.c_void_p) def __init__(self, config=None): '''