assert   
  - Problem(s) detected:
  - out_main:
  - UNEXPECTED. Final check query did not return expected dataset for 65 seconds.
  - Final check query:
  - 
  -             set bail on;
  -             set list on;
  -             set count on;
  -             select
  -                 rdb$get_context('SYSTEM','REPLICA_MODE') replica_mode
  -                 ,who
  -                 ,cast(bdata as varchar(32760)) as bdata
  -             from v_test;
  -         
  - Expected output:
  - REPLICA_MODE READ-ONLY
  - WHO TMP_REPLICATOR_BLOB_ACCESS
  - BDATA test blob data
  - Records affected: 1
  - Actual output:
  - Records affected: 0
  - ISQL return_code=0
  - Waited for 64 seconds
  - 
  - out_drop:
  - UNEXPECTED. Initial check query did not return any rows for 65 seconds.
  - Initial check query:
  - 
  -                 select 1
  -                 from rdb$database
  -                 where NOT exists (
  -                     select custom_db_object_flag
  -                     from (
  - 

[...SKIPPED...]

s error does NOT appear in case if we use con.execute_immediate().+,+        BDATA BLOB SUB_TYPE TEXT SEGMENT SIZE 80,+CONSTRAINT TEST_PK PRIMARY KEY (ID));++/* Table: T_COMPLETED, Owner: SYSDBA */+CREATE TABLE T_COMPLETED (ID INTEGER NOT NULL,+PRIMARY KEY (ID));++/* View: V_TEST, Owner: SYSDBA */+CREATE VIEW V_TEST (ID, WHO, BDATA) AS+select id, who, bdata from test;++/* Grant permissions for this database */+GRANT INSERT ON V_TEST TO USER TMP_REPLICATOR_BLOB_ACCESS;
2026-04-02 10:59:25.742 E             -
2026-04-02 10:59:25.750
2026-04-02 10:59:25.757 tests/functional/replication/test_blob_access_when_no_grant_for_select.py:477: AssertionError
2026-04-02 10:59:25.763 ---------------------------- Captured stdout setup -----------------------------
2026-04-02 10:59:25.769 CREATE user: TMP_REPLICATOR_BLOB_ACCESS PLUGIN: Srp
2026-04-02 10:59:25.777 --------------------------- Captured stdout teardown ---------------------------
2026-04-02 10:59:25.784 DROP user: TMP_REPLICATOR_BLOB_ACCESS PLUGIN: Srp