Open sergiosa61 opened 7 months ago
Hi, With the following modification it seems to work now
--- gixsql-1.0.20b/runtime/libgixsql/gixsql.cpp 2023-04-26 17:50:25.000000000 +0200
+++ gixsql-1.0.20bV2/runtime/libgixsql/gixsql.cpp 2024-04-12 17:09:46.267734476 +0200
@@ -820,7 +820,9 @@
}
int sql_code_local = DBERR_NO_ERROR;
- (*it)->createCobolData(buffer.get(), datalen, &sql_code_local);
+ char* _data_bfr = is_null ? nullptr : buffer.get();
+ uint64_t _data_len = is_null ? 0 : datalen;
+ (*it)->createCobolData(_data_bfr, _data_len, &sql_code_local);
if (sql_code_local) {
setStatus(st, dbi, sql_code_local);
sqlcode = sql_code_local;
Trying to use the cursors with the null indicators I verified that in the presence of null values a zero value is always returned.
01 COM-NULL-IND PIC S9(4) COMP.
execution display fetch
In single-row SELECT it works correctly
execution display select
The gixpp version
The cobc version
Os Version