Commit c9d0811
committed
Fix NULL handling in FQexecParams()
It turns out that if a column has a NOT NULL constraint, but
the provided parameter for that column is NULL, if var->sqldata is
allocated, the column will be filled with whatever the allocated
memory contains (probably garbage, as we weren't initialising it).
This does not happen if the column has no NOT NULL constraint.1 parent 4f57c5c commit c9d0811
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
| 1544 | + | |
1544 | 1545 | | |
1545 | | - | |
1546 | | - | |
1547 | 1546 | | |
1548 | | - | |
1549 | 1547 | | |
1550 | 1548 | | |
1551 | 1549 | | |
| |||
0 commit comments