mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-02-02 02:40:42 +01:00
Added/Updated tests\functional\transactions\test_read_consist_sttm_restart_on_merge_01.py: Writing code requires more care since 6.0.0.150: ISQL does not allow specifying duplicate delimiters without any statements between them (two semicolon, two carets etc). Merge expression defined in 'SQL_TO_BE_RESTARTED' must NOT end with semicolon
This commit is contained in:
parent
5d853cd444
commit
02b4278725
@ -138,6 +138,10 @@ NOTES:
|
|||||||
NB! Worker transaction must running in WAIT mode - in contrary to Tx that we start in our monitoring loop.
|
NB! Worker transaction must running in WAIT mode - in contrary to Tx that we start in our monitoring loop.
|
||||||
|
|
||||||
Checked on WI-T6.0.0.48, WI-T5.0.0.1211, WI-V4.0.4.2988.
|
Checked on WI-T6.0.0.48, WI-T5.0.0.1211, WI-V4.0.4.2988.
|
||||||
|
|
||||||
|
[25.11.2023] pzotov
|
||||||
|
Writing code requires more care since 6.0.0.150: ISQL does not allow specifying duplicate delimiters without any statements between them (two semicolon, two carets etc).
|
||||||
|
Merge expression defined in 'SQL_TO_BE_RESTARTED' must NOT end with semicolon!
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -225,8 +229,7 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
|||||||
when matched then
|
when matched then
|
||||||
update set t.id = -t.id, t.x = -s.x
|
update set t.id = -t.id, t.x = -s.x
|
||||||
when not matched then
|
when not matched then
|
||||||
insert(id,x) values(s.id, -s.x - 500);
|
insert(id,x) values(s.id, -s.x - 500)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# add rows with ID = 1, 2, 3:
|
# add rows with ID = 1, 2, 3:
|
||||||
@ -420,7 +423,6 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
|||||||
allowed_patterns = \
|
allowed_patterns = \
|
||||||
[
|
[
|
||||||
'\\)\\s+EXECUTE_STATEMENT_RESTART$'
|
'\\)\\s+EXECUTE_STATEMENT_RESTART$'
|
||||||
#,re.escape(SQL_TO_BE_RESTARTED)
|
|
||||||
,'^Restarted \\d+ time\\(s\\)'
|
,'^Restarted \\d+ time\\(s\\)'
|
||||||
]
|
]
|
||||||
allowed_patterns = [re.compile(x) for x in allowed_patterns]
|
allowed_patterns = [re.compile(x) for x in allowed_patterns]
|
||||||
|
Loading…
Reference in New Issue
Block a user