Bom dia pessoal,
 
Estou tentando gravar objetos num campo memo do Informix e estou fazendo o seguinte:
 
!!CB!! 70
Call SalPicGetString( picObject, PIC_FormatObject, lsImage )
Call SqlPrepare( hSqlPrimaria,
    "INSERT INTO OBJETOS
    ( CODIGO, DESCRICAO, IN_ZOOM, OBJETO )
     VALUES
    ( :dfCODIGO, :mlDESCRICAO, :sIN_ZOOM, :lsImage )" )
Call SqlSetLongBindDatatype( 4, 23 )
Call SqlExecute( hSqlPrimaria )

 
e ele est� me retornando o seguinte erro:
 
Programming Error: Missing long bind before write long.
      Reason: The application program is attempting to perform a write long
       (sqlwlo) function call and no long data has been bound.
 
      Remedy: Correct the application program. Long data must be bound to
       a write long operation before attempting to write it with either
       a bind long data by number (sqlbln) or bind long data by data
       name (sqlbld) function call.
 
Obs.: Esse erro ocorre qdo tento salvar um documento do Word Pad ou um clipe de multimidia.

Responder a