[Gambas-devel] Re: [Gambas-user] Database Edit error with SQlite

Benoit Minisini gambas at ...1...
Thu Sep 2 22:30:34 CEST 2004


On Thursday 02 September 2004 22:14, Nigel Gerrard wrote:
> Benoit,
>
> Forgetting about primary key, could you check this out in response to
> the problem with Connection.Edit("table","field = &1", "\"fred\"") :
>
> #6: Type mismatch: wanted Void, got String instead
>
> I believe this is happening where optional void parameters are used.
>
> If I change code in gbx_exec.c so that from line 708 (Well in 97a anyway
> as that is the only copy so far installed on my laptop) -
>
>   if (desc->npmin < desc->npmax)
>   {
>     for (; i < nparam; i++, value++, sign++)
>     {
>       if (value->type != T_VOID){
>         VALUE_conv(value, *sign);
>       }
>     }
>
> becomes
>
>   if (desc->npmin < desc->npmax)
>   {
>     for (; i < nparam; i++, value++, sign++)
>     {
>       if (*sign != T_VOID){
>         VALUE_conv(value, *sign);
>       }
>     }
>
> Then I have no problems.
>
> Could you confirm that this is what should have been entered.
>
> Kind regards
>
> Nigel
>

Oops, sorry that I didn't tell you that I fixed the bug. Here is the good 
gbx_exec.c file.

-- 
Benoit Minisini
mailto:gambas at ...1...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_exec.c
Type: text/x-csrc
Size: 24775 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040902/b8dd6299/attachment.c>


More information about the Devel mailing list