You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2024/11/11 01:32:49 UTC

(iotdb) branch master updated: fix for cpp client checkTemplate exist (#14028)

This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 5cf18ed5a37 fix for cpp client checkTemplate exist (#14028)
5cf18ed5a37 is described below

commit 5cf18ed5a37b733a9a20e86d3828158c43d21b0e
Author: Yukim1 <12...@users.noreply.github.com>
AuthorDate: Mon Nov 11 09:32:43 2024 +0800

    fix for cpp client checkTemplate exist (#14028)
---
 iotdb-client/client-cpp/src/main/Session.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-client/client-cpp/src/main/Session.cpp b/iotdb-client/client-cpp/src/main/Session.cpp
index 9468f20dc68..3a11da9ac7e 100644
--- a/iotdb-client/client-cpp/src/main/Session.cpp
+++ b/iotdb-client/client-cpp/src/main/Session.cpp
@@ -2288,7 +2288,7 @@ bool Session::checkTemplateExists(const string& template_name) {
         return isExisted;
     }
     catch (const exception &e) {
-        if ( strstr(e.what(), "get template info error") != NULL ) {
+        if ( strstr(e.what(), "does not exist") != NULL ) {
             return false;
         }
         log_debug(e.what());