[Lazarus] SQLdb not detect automatically Required field

silvioprog silvioprog at gmail.com
Fri Aug 12 13:01:34 CEST 2011


2011/8/9 Michael Van Canneyt <michael at freepascal.org>:
> It is not always possible to detect the required field.
> Delphi also very often does it wrong.  (for instance when you do a join)
>
> That is why sql-db relies on the ProviderOptions property : pfInkey should
> be set for the keyfield.
>
> This does not exclude that fcl-db should try harder to detect the key field,
> but you should be aware that it cannot always be detected reliably. (I
> always specify it manually)
>
> So leave the bug open. But try setting the pfInKey option
> whenever you can.
>
> Michael.

Thanks Michael,

After this explanation, I'll prefer inform the Required field manually.

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
LazWebSolutions - <code.google.com/p/lazwebsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================




More information about the Lazarus mailing list