From 9c05781523e26879c1aee8020974b5c99057d544 Mon Sep 17 00:00:00 2001 From: longfengpili <398745129@qq.com> Date: Wed, 1 Jun 2022 14:07:40 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96]with=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=80=E5=90=8E=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pydbapi/db/base.py | 5 +++-- setup.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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: