8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Fix for Claudio's cleanup

This commit is contained in:
aafemt 2004-01-28 11:23:41 +00:00
parent fe4126edf9
commit f4d8d5c18d

View File

@ -25,7 +25,7 @@
// //
//____________________________________________________________ //____________________________________________________________
// //
// $Id: cmd.cpp,v 1.28 2004-01-28 07:50:27 robocop Exp $ // $Id: cmd.cpp,v 1.29 2004-01-28 11:23:41 aafemt Exp $
// //
#include "firebird.h" #include "firebird.h"
@ -945,9 +945,11 @@ static void create_set_default_trg(gpre_req* request,
request_action->act_type == ACT_alter_table) && request_action->act_type == ACT_alter_table) &&
(rel = (gpre_rel*) request_action->act_object) && (rel = (gpre_rel*) request_action->act_object) &&
(strcmp(rel->rel_symbol->sym_string, (strcmp(rel->rel_symbol->sym_string,
relation->rel_symbol->sym_string) == 0)) { relation->rel_symbol->sym_string) == 0))
{
gpre_fld* fld;
// ... then try to check for the default in memory // ... then try to check for the default in memory
for (gpre_fld* fld = (gpre_fld*) rel->rel_fields; for (fld = (gpre_fld*) rel->rel_fields;
fld; fld = fld->fld_next) fld; fld = fld->fld_next)
{ {
if (strcmp(fld->fld_symbol->sym_string, if (strcmp(fld->fld_symbol->sym_string,