Citación del post de
fastpho
|
❞
@Joseg
La funcion sqlite3_step espera el valor por value no por reference seria asi :
Código COBOL:
working-storage. 01 stmt-handle PIC 9(9) COMP-5. 01 redefines stmt-handle. 05 pStmt usage pointer.
Código COBOL:
call "sqlite3_step" & X"00" WITH STDCALL LINKAGE using by value stmt-handle returning BD-STATUS end-call
Saludos...
|
Ok, la función "sqlite3_step" ya está bien.
La función "sqlite3_column_count" también está bien.
La siguiente función siempre devuelve NULL (5)
Código COBOL:
move 1 to wnum-columns
call "sqlite3_column_type" & X"00" WITH STDCALL LINKAGE
using
by value stmt-handle
by value wnum-columns
returning BD-COLUMNA-TIPO
end-call
¿Puede publicar una parte del código que se repite desde una tabla hasta que los datos se puedan consultar en PowerCobol?
Gracias por la ayuda.
Jose