mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Backported fix for CORE-3733: GBAK fails to fix system generators while restoring
This commit is contained in:
parent
6986b89662
commit
f5cc73ac36
@ -8302,7 +8302,7 @@ void fix_generator(BurpGlobals* tdgbl, const FixGenerator* g)
|
||||
"DECLARE VARIABLE currentGen INT; "
|
||||
"BEGIN "
|
||||
" SELECT FIRST(1) CAST(SUBSTRING(%s FROM %d FOR 32) AS INT) FROM %s "
|
||||
" WHERE SUBSTRING(%s FROM %d FOR 32) < '999999999999999999999999999999' "
|
||||
" WHERE SUBSTRING(%s FROM %d FOR 32) SIMILAR TO '[0-9]+ *' "
|
||||
" AND %s STARTING WITH '%s' ORDER BY 1 DESC INTO :maxInTable; "
|
||||
" "
|
||||
" currentGen = gen_id(%s, 0); "
|
||||
|
Loading…
Reference in New Issue
Block a user