diff --git a/libsrc/Wi/sqlgen.c b/libsrc/Wi/sqlgen.c index 5c582e41a0..1f39c30d76 100644 --- a/libsrc/Wi/sqlgen.c +++ b/libsrc/Wi/sqlgen.c @@ -1630,7 +1630,8 @@ sqlg_hash_source (sqlo_t * so, df_elt_t * tb_dfe, dk_set_t * pre_code) } else { - hs->hs_ref_slots[nth]->ssl_sqt.sqt_col_dtp = ssl->ssl_sqt.sqt_col_dtp; /* hash filler col must have this set */ + if (NULL == hs->hs_ref_slots[nth]->ssl_column) /* if there is a col col_dtp is set already and dc fill fn for it, do next otherwise */ + hs->hs_ref_slots[nth]->ssl_sqt.sqt_col_dtp = ssl->ssl_sqt.sqt_col_dtp; /* hash filler col must have this set */ if (!tb_dfe->_.table.ot->ot_is_outer) ssl_alias (ssl, hs->hs_ref_slots[nth]); else