From c90bcf2051c4fbdeffe93d0e716a928bcd0a4216 Mon Sep 17 00:00:00 2001 From: CorvusYe Date: Wed, 15 Nov 2023 03:10:20 +0800 Subject: [PATCH 1/4] fix: disable automatic space switching when the current space is null --- .../ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java | 6 ++++-- ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml | 8 ++++++-- .../ngbatis/demo/repository/DropSpaceDaoTest.java | 6 +++--- .../org/nebula/contrib/ngbatis/proxy/MapperProxy.java | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java b/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java index b03a4da..adc8329 100644 --- a/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java +++ b/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java @@ -14,9 +14,11 @@ */ public interface DropSpaceDao { - void createSpace(String name); + void useTestSpace(); - void dropSpace(String name); + void createSpace(); + + void dropSpace(); List showTags(); diff --git a/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml b/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml index d503396..b1f068f 100644 --- a/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml +++ b/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml @@ -6,11 +6,15 @@ - drop space ${ p0 }; + drop space test_drop; + +