mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Fixed CORE-6040 - Metadata script extracted using ISQL is invalid/incorrect when table has COMPUTED BY field.
This commit is contained in:
parent
8f1f459ac4
commit
f00d04cbcf
@ -479,6 +479,22 @@ int EXTRACT_list_table(const SCHAR* relation_name,
|
||||
if (!FLD.RDB$COMPUTED_SOURCE.NULL)
|
||||
ISQL_print_validation (isqlGlob.Out, &FLD.RDB$COMPUTED_SOURCE, true, fbTrans);
|
||||
}
|
||||
else if (collation)
|
||||
{
|
||||
SCHAR collate_name[CHARSET_COLLATE_SIZE];
|
||||
collate_name[0] = '\0';
|
||||
ISQL_get_character_sets(char_set_id, collation, true, false, true, collate_name);
|
||||
|
||||
if (collate_name[0])
|
||||
{
|
||||
isqlGlob.printf("(CAST(NULL AS VARCHAR(1)%s)", char_sets);
|
||||
isqlGlob.printf("%s)", collate_name);
|
||||
}
|
||||
else
|
||||
isqlGlob.printf("(NULL)");
|
||||
|
||||
collation = 0;
|
||||
}
|
||||
else
|
||||
isqlGlob.printf("(NULL)");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user