Tecnologia do Blogger.
RSS

[androidbrasil-dev] incorrect type in DBvalue

Bom dia a todos,

possuo um Webservice em delphi usando DataSnap que faz a ligação entre meu app e o banco de dados.
No banco Firebird há um campo do tipo integer e outro do tipo smalllite que preciso buscar.


Para sincronizar os dados com o Webservice eu uso.
 

ct.put("VENCIMENTO_REC", ds.getValue("CR_PRAZO").GetAsUInt16());


Mas ocorre o erro 

incorrect type in DBvalue.

Já tentei com todos os tipos de int disponíveis.
ct.put("VENCIMENTO_REC", ds.getValue("CR_PRAZO").GetAsUInt8());
ct
.put("VENCIMENTO_REC", ds.getValue("CR_PRAZO").GetAsUInt16());
ct
.put("VENCIMENTO_REC", ds.getValue("CR_PRAZO").GetAsUInt32());
ct
.put("VENCIMENTO_REC", ds.getValue("CR_PRAZO").GetAsUInt64());

Mas sem sucesso.
Até agora não consegui sincronizar nem um campo do tipo int devido a esse problema.

Alguém sabe como eu posso resolver esse problema?

 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário