[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected
From: |
xypron |
Subject: |
Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900 |
Date: |
Sun, 14 Feb 2010 11:12:48 -0800 (PST) |
Hello Noli,
when using SQL you can specify in the CREATE
statement, if a column can be NULL. If you don't want a
null you can use a create statement like:
CREATE TABLE example(
id INT NOT NULL AUTO_INCREMENT,
col INT NOT NULL DEFAULT 13,
lin INT NOT NULL DEFAULT -47,
PRIMARY KEY(id));
You can use a SELECT statement like the following
to replace null be a value:
SELECT val from example
WHERE
not val = null
UNION
SELECT 0 val from example
WHERE
col = null;
Best regards
Xypron
Noli Sicad wrote:
>
> Hello Xypron,
>
> Would it be possible to put 0 for this NULL rather terminating the
> mathprog, just to process this query or reading table.
>
>
--
View this message in context:
http://old.nabble.com/Assertion-failed%3A-str2num%28buf%2C--num%29-%3D%3D-0-Error-detected-in-file-..%5Csrc%5Cglpsql.c-at-line-900-tp27559656p27585990.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.
- [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Noli Sicad, 2010/02/12
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Andrew Makhorin, 2010/02/12
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, glpk xypron, 2010/02/13
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, glpk xypron, 2010/02/13
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Noli Sicad, 2010/02/14
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Andrew Makhorin, 2010/02/14
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900,
xypron <=
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Noli Sicad, 2010/02/14
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Andrew Makhorin, 2010/02/14
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Andrew Makhorin, 2010/02/14
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Xypron, 2010/02/15
- Re: [Bug-glpk] Assertion failed: str2num(buf, &num) == 0 Error detected in file ..\src\glpsql.c at line 900, Noli Sicad, 2010/02/15