bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected


From: Andrew Makhorin
Subject: Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900
Date: Mon, 15 Feb 2010 05:01:35 +0300

>> Andrew, do you have any suggestion how to patch this bug properly?
> 
> Consider the following example:
> 
>    table data IN "...": s <- [FROM,TO], d~DISTANCE, c~COST;
> 
> For fields FROM and TO a null value is not allowed and should cause
> an error. However, for fields DISTANCE and/or COST it could be allowed,
> that would mean missing data.

I think that if the table driver routine encounters a null value, it
would be sufficient just *not* to call mpl_tab_set_num/str, in which
case dca->type[k] being initialized to '?' will not be changed and cause
an error.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]