diff --git a/pydbapi/db/base.py b/pydbapi/db/base.py index b27703b..a5dbb3c 100644 --- a/pydbapi/db/base.py +++ b/pydbapi/db/base.py @@ -1,7 +1,7 @@ # @Author: chunyang.xu # @Email: 398745129@qq.com # @Date: 2020-06-02 18:46:58 -# @Last Modified time: 2022-03-15 10:11:49 +# @Last Modified time: 2022-06-01 13:57:39 # @github: https://github.com/longfengpili # !/usr/bin/env python3 @@ -113,7 +113,8 @@ def execute(self, sql, count=None, ehandling='raise', verbose=0): self.__execute_step(cur, sql, ehandling=ehandling) - if action == 'SELECT' and (verbose or idx == sqls_length): + if (action == 'SELECT' and (verbose or idx == sqls_length)) \ + or (action == 'WITH' and idx == sqls_length): # columns, results = cur_getresults(cur, count) results = self.cur_results(cur, count) desc, columns = self.cur_columns(cur) diff --git a/setup.py b/setup.py index b83d45f..23cf2d7 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # @Author: chunyang.xu # @Email: 398745129@qq.com # @Date: 2020-06-09 16:46:54 -# @Last Modified time: 2022-03-15 10:12:40 +# @Last Modified time: 2022-06-01 13:53:53 # @github: https://github.com/longfengpili # !/usr/bin/env python3 @@ -12,7 +12,7 @@ import shutil import setuptools -VERSION = '0.0.86' +VERSION = '0.0.87' PROJECT_NAME = 'pydbapi' with open('README.md', 'r', encoding='utf-8') as f: