Bug #2508 | 1048 - column 'name' cannot be null (error with union and left join) | ||
---|---|---|---|
Submitted: | 25 Jan 2004 23:12 | Modified: | 6 Feb 2004 10:50 |
Reporter: | david hodge | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.0 and 4.1.1a | OS: | Windows (windows XP) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[25 Jan 2004 23:12]
david hodge
[28 Jan 2004 8:13]
MySQL Verification Team
A patch that fixes a problem has been sent and proposed as a solution.
[6 Feb 2004 10:50]
MySQL Verification Team
Patch pushed.
[2 Nov 2007 18:11]
Dariel Barroso Tallart
I am a proble to call a procedure, and give me the same mistake. my procedure is this: create procedure insert_embarque (in cod int(10), in pai varchar(50), trans int(10), cant int(10), fech date) begin declare c int(10); declare p varchar(50); declare t int(10); set c = (select code from MERCANCIA where code=cod); set p = (select nombre from PAIS where nombre='pai'); set t = (select code from TRANSPORTE where code=trans); INSERT INTO EMBARQUE (mercancia, pais, tipo_transporte, fecha, cantidad, precio) values (c, p, t, fech, cant, null); end; and my call si this: call insert_embarque(1, 'pais 1', 2, '2007/10/27', 4); and this give me this mistake: #1048 - Column 'pais' cannot be null how can I resolve that problem???