From 502f5b86873325f5cc76aaf7e2e4e5cb7dafaba8 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Thu, 2 Jun 2022 19:04:16 +0800 Subject: [PATCH] fix: change python stmt null value test for 2.6 (#13426) --- src/connector/python/README.md | 4 ++-- tests/system-test/1-insert/stmt_error.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/connector/python/README.md b/src/connector/python/README.md index c48a2dac4b..f2fe156e79 100644 --- a/src/connector/python/README.md +++ b/src/connector/python/README.md @@ -154,7 +154,7 @@ stmt = conn.statement("insert into log values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)") params = new_bind_params(16) params[0].timestamp(1626861392589) params[1].bool(True) -params[2].null() +params[2].tinyint(None) params[3].tinyint(2) params[4].smallint(3) params[5].int(4) @@ -171,7 +171,7 @@ params[15].timestamp(1626861392589) stmt.bind_param(params) params[0].timestamp(1626861392590) -params[15].null() +params[15].timestamp(None) stmt.bind_param(params) stmt.execute() diff --git a/tests/system-test/1-insert/stmt_error.py b/tests/system-test/1-insert/stmt_error.py index 8961346034..cefc99f229 100644 --- a/tests/system-test/1-insert/stmt_error.py +++ b/tests/system-test/1-insert/stmt_error.py @@ -54,7 +54,7 @@ class TDTestCase: params = new_bind_params(16) params[0].timestamp(1626861392589, PrecisionEnum.Milliseconds) params[1].bool(True) - params[2].null() + params[2].tinyint(None) params[3].tinyint(2) params[4].smallint(3) params[5].int(4) @@ -120,7 +120,7 @@ class TDTestCase: params = new_bind_params(16) params[0].timestamp(1626861392589, PrecisionEnum.Milliseconds) params[1].bool(True) - params[2].null() + params[2].tinyint(None) params[3].tinyint(2) params[4].smallint(3) params[5].int(4) -- GitLab