baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

How to accept CLOB data from database? #234

Open huang508 opened 1 year ago

huang508 commented 1 year ago

type : com.ibm.db2.jcc.am.te@7a685a3c

huang508 commented 1 year ago

有人知道吗?

cnlydia commented 10 months ago

我这边处理clob是jdbc返回值调用getSubString res = db_util.execute_sql(sql) res = [(r[0].getSubString(1, int(r[0].length())) if r[0] else "") for r in res]