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

Backported fix for CORE-3733: GBAK fails to fix system generators while restoring

This commit is contained in:
alexpeshkoff 2012-01-18 12:05:09 +00:00
parent 6986b89662
commit f5cc73ac36

View File

@ -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); "