diff --git a/docs/tools/python-client-library/python-client-example.md b/docs/tools/python-client-library/python-client-example.md index e9e09c66..15d00e93 100644 --- a/docs/tools/python-client-library/python-client-example.md +++ b/docs/tools/python-client-library/python-client-example.md @@ -126,7 +126,7 @@ def upload_data_bulk(key_from: int, key_to: int): if result.ok: print("inserted " + str(result.rows_affected) + " rows in " + str(etime+1-stime) + " seconds.") else: - print(result.error.description) + print(result.error) return result.ok # create a demo table and load million rows @@ -134,7 +134,7 @@ def run(batchSize: int): # create demo table result=client.query(sql="CREATE TABLE demo_upload(_id ID, keycol INT, val1 STRING, val2 STRING)") if not result.ok: - print(result.error.description) + print(result.error) # insert batchSize rows per insert for 1000 times n=int(1000000/batchSize) l=1