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

Backport fix for SHOW GENERATOR

This commit is contained in:
asfernandes 2006-04-13 03:28:56 +00:00
parent 365a3b836c
commit bead5f7f26

View File

@ -2705,7 +2705,7 @@ static processing_state show_generators(const SCHAR* object)
**************************************
*
* Functional description
* Show generators including the next number they return
* Show generators including the current number they return
* We do this by selecting the GEN_ID of each one,
* incrementing by 0 to not change the current value.
*
@ -2724,7 +2724,7 @@ static processing_state show_generators(const SCHAR* object)
fb_utils::exact_name(GEN.RDB$GENERATOR_NAME);
if ((!*object && GEN.RDB$SYSTEM_FLAG.NULL) ||
if ((!*object && (GEN.RDB$SYSTEM_FLAG.NULL || GEN.RDB$SYSTEM_FLAG == 0)) ||
(!strcmp (GEN.RDB$GENERATOR_NAME, object)))
{
// Get the current id for each generator