mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:43:04 +01:00
Fix bug with alias hiding datatype by datatype-list coercion
This commit is contained in:
parent
77572bda2c
commit
cfc703f766
@ -1306,6 +1306,12 @@ void MAKE_desc_from_list(dsc* desc, dsql_nod* node,
|
|||||||
dsql_nod** arg = node->nod_arg;
|
dsql_nod** arg = node->nod_arg;
|
||||||
for (dsql_nod** end = arg + node->nod_count; arg < end; arg++) {
|
for (dsql_nod** end = arg + node->nod_count; arg < end; arg++) {
|
||||||
dsql_nod* tnod = *arg;
|
dsql_nod* tnod = *arg;
|
||||||
|
|
||||||
|
// If this is an alias pick the source datatype
|
||||||
|
if (tnod->nod_type == nod_alias) {
|
||||||
|
tnod = tnod->nod_arg[e_alias_value];
|
||||||
|
}
|
||||||
|
|
||||||
// do we have only literal NULLs?
|
// do we have only literal NULLs?
|
||||||
if (tnod->nod_type != nod_null) {
|
if (tnod->nod_type != nod_null) {
|
||||||
all_nulls = false;
|
all_nulls = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user