Skip to content

Commit 893a9c0

Browse files
committed
Allow fetch of DB2 BLOB
There's no pipeline scaffolding for DB2 tests. I have tested locally with DB2 v11.5.8.0, IBM ODBC driver 11.5.0 linux 64, Python 3.12.3. Closes mkleehammer#1411
1 parent cfe0575 commit 893a9c0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/dbspecific.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define SQL_DB2_DECFLOAT -360 // IBM DB/2 DECFLOAT type
1717
#define SQL_DB2_XML -370 // IBM DB/2 XML type
1818
#define SQL_SS_TIME2 -154 // SQL Server 2008 time type
19+
#define SQL_DB2_BLOB -98 // IBM DB/2 BLOB type
1920

2021
struct SQL_SS_TIME2_STRUCT
2122
{

src/getdata.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ PyObject* GetData(Cursor* cur, Py_ssize_t iCol)
725725
case SQL_BINARY:
726726
case SQL_VARBINARY:
727727
case SQL_LONGVARBINARY:
728+
case SQL_DB2_BLOB:
728729
return GetBinary(cur, iCol);
729730

730731
case SQL_DECIMAL:

0 commit comments

Comments
 (0)