Check firebird.log [no messages found for interval when this test was running]
Jump to: output_first_mismatch    outcomes_full_history    elapsed_time_chart
Show cross-report outcomes.

Annotation type Annotation details
2 @message
Server crashed ?

firebird.driver.types.DatabaseError: Error writing data to the connection.

LOG DETAILS:

2025-02-20 11:17:25.354
2025-02-20 11:17:25.362 act = <firebird.qa.plugin.Action object at [hex]>
2025-02-20 11:17:25.369 tmp_user = <firebird.qa.plugin.User object at [hex]>
2025-02-20 11:17:25.376 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-02-20 11:17:25.383
2025-02-20 11:17:25.391 @pytest.mark.version('>=3.0.4')
2025-02-20 11:17:25.404 def test_1(act: Action, tmp_user: User, capsys):
2025-02-20 11:17:25.415
2025-02-20 11:17:25.423 init_ddl = [
2025-02-20 11:17:25.430 """
2025-02-20 11:17:25.437 set bail on;
2025-02-20 11:17:25.443 recreate sequence g;
2025-02-20 11:17:25.453 create table test(id int primary key, measure int, iter_no int);
2025-02-20 11:17:25.465
2025-02-20 11:17:25.477 create view v_test1 as select * from test;
2025-02-20 11:17:25.490 """
2025-02-20 11:17:25.503 ,'\n'.join( ['create view v_test%s as select * from v_test%s;' % (str(i), str(i-1)) for i in range(2,NESTED_LIMIT+1) ] )
2025-02-20 11:17:25.511 ,f"""
2025-02-20 11:17:25.519 commit;
2025-02-20 11:17:25.526
2025-02-20 11:17:25.533 set term ^;
2025-02-20 11:17:25.549 create procedure sp_run(a_measure smallint, n_iterations int) as
2025-02-20 11:17:25.558 begin
2025-02-20 11:17:25.565 while ( n_iterations > 0 ) do
2025-02-20 11:17:25.572 begin
2025-02-20 11:17:25.581 execute statement 'update v_test{NESTED_LIMIT} set measure = ' || a_measure || ', iter_no = ' || n_iterations;
2025-02-20 11:17:25.590 n_iterations = n_iterations - 1;
2025-02-20 11:17:25.602 end
2025-02-20 11:17:25.614
2025-02-20 11:17:25.624 end
2025-02-20 11:17:25.633 ^
2025-02-20 11:17:25.646 set term ;^
2025-02-20 11:17:25.656 commit;
2025-02-20 11:17:25.664
2025-02-20 11:17:25.671 grant execute on procedure sp_run to {tmp_user.name};
2025-02-20 11:17:25.679 grant select, update on v_test{NESTED_LIMIT} to {tmp_user.name};
2025-02-20 11:17:25.685 grant usage on sequence g to {tmp_user.name};
2025-02-20 11:17:25.690 commit;
2025-02-20 11:17:25.697
2025-02-20 11:17:25.709 insert into v_test{NESTED_LIMIT}(id, measure, iter_no) values(0,-1,-1);
2025-02-20 11:17:25.719 commit;
2025-02-20 11:17:25.728 """
2025-02-20 11:17:25.735 ]
2025-02-20 11:17:25.741
2025-02-20 11:17:25.751 act.expected_stdout = ''
2025-02-20 11:17:25.767 act.isql(input = '\n'.join(init_ddl), combine_output = True)
2025-02-20 11:17:25.777 assert act.clean_stdout == act.clean_expected_stdout
2025-02-20 11:17:25.789 act.reset()
2025-02-20 11:17:25.800
2025-02-20 11:17:25.809 #------------------------------------------------------------
2025-02-20 11:17:25.823
2025-02-20 11:17:25.835 pid_sttm = 'select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection'
2025-02-20 11:17:25.845 with act.db.connect() as con_sysdba, act.db.connect(user = tmp_user.name, password = tmp_user.password) as con_nondba:
2025-02-20 11:17:25.860 cur_sysdba = con_sysdba.cursor()
2025-02-20 11:17:25.875 cur_nondba = con_nondba.cursor()
2025-02-20 11:17:25.891 cur_sysdba.execute(pid_sttm)
2025-02-20 11:17:25.902 cur_nondba.execute(pid_sttm)
2025-02-20 11:17:25.912 pid_sysdba = cur_sysdba.fetchone()[0]
2025-02-20 11:17:25.920 pid_nondba = cur_nondba.fetchone()[0]
2025-02-20 11:17:25.928
2025-02-20 11:17:25.935 sp_time = {}
2025-02-20 11:17:25.943 for who in (act.db.user, tmp_user.name):
2025-02-20 11:17:25.950 fb_pid = pid_sysdba if who == act.db.user else pid_nondba
2025-02-20 11:17:25.956 con = con_sysdba if who == act.db.user else con_nondba
2025-02-20 11:17:25.962 cur = cur_sysdba if who == act.db.user else cur_nondba
2025-02-20 11:17:25.971
2025-02-20 11:17:25.985 for iter_no in range(0, N_MEASURES):
2025-02-20 11:17:25.996 fb_info_init = psutil.Process(fb_pid).cpu_times()
2025-02-20 11:17:26.005 >                   cur.callproc( 'sp_run', (iter_no, N_COUNT_PER_MEASURE,) )
2025-02-20 11:17:26.016
2025-02-20 11:17:26.029 tests/bugs/gh_6220_test.py:147:
2025-02-20 11:17:26.038 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:26.049
2025-02-20 11:17:26.059 self = <firebird.driver.core.Cursor object at [hex]>
2025-02-20 11:17:26.069 proc_name = 'sp_run', parameters = (18, 100)
2025-02-20 11:17:26.077
2025-02-20 11:17:26.086 def callproc(self, proc_name: str, parameters: Sequence=None) -> None:
2025-02-20 11:17:26.095 """Executes a stored procedure with the given name.
2025-02-20 11:17:26.103
2025-02-20 11:17:26.110 Arguments:
2025-02-20 11:17:26.120 proc_name: Stored procedure name.
2025-02-20 11:17:26.128 parameters: Sequence of parameters. Must contain one entry for each argument
2025-02-20 11:17:26.137 that the procedure expects.
2025-02-20 11:17:26.147
2025-02-20 11:17:26.161 .. note::
2025-02-20 11:17:26.173
2025-02-20 11:17:26.182 If stored procedure does have output parameters, you must retrieve their values
2025-02-20 11:17:26.191 saparatelly by `.Cursor.fetchone()` call. This method is not very convenient,
2025-02-20 11:17:26.201 but conforms to Python DB API 2.0. If you don't require conformance to Python
2025-02-20 11:17:26.215 DB API, it's recommended to use more convenient method `.Cursor.call_procedure()`
2025-02-20 11:17:26.226 instead.
2025-02-20 11:17:26.233 """
2025-02-20 11:17:26.246 params = [] if parameters is None else parameters
2025-02-20 11:17:26.262 sql = ('EXECUTE PROCEDURE ' + proc_name + ' '
2025-02-20 11:17:26.271 + ','.join('?' * len(params)))
2025-02-20 11:17:26.278 >       self.execute(sql, params)
2025-02-20 11:17:26.285
2025-02-20 11:17:26.292 ../lib/python3.11/site-packages/firebird/driver/core.py:3682:
2025-02-20 11:17:26.299 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:26.307
2025-02-20 11:17:26.315 self = <firebird.driver.core.Cursor object at [hex]>
2025-02-20 11:17:26.324 operation = 'EXECUTE PROCEDURE sp_run ?,?', parameters = (18, 100)
2025-02-20 11:17:26.331
2025-02-20 11:17:26.341 def execute(self, operation: Union[str, Statement], parameters: Sequence[Any]=None) -> Cursor:
2025-02-20 11:17:26.348 """Executes SQL command or prepared `Statement`.
2025-02-20 11:17:26.355
2025-02-20 11:17:26.362 Starts new transaction if transaction manager associated with cursor is not active.
2025-02-20 11:17:26.374
2025-02-20 11:17:26.383 Arguments:
2025-02-20 11:17:26.392 operation: SQL command or prepared `Statement`.
2025-02-20 11:17:26.400 parameters: Sequence of parameters. Must contain one entry for each argument
2025-02-20 11:17:26.408 that the operation expects.
2025-02-20 11:17:26.415
2025-02-20 11:17:26.422 Returns:
2025-02-20 11:17:26.431 `self` so call to execute could be used as iterator over returned rows.
2025-02-20 11:17:26.444
2025-02-20 11:17:26.453 Note:
2025-02-20 11:17:26.466 If `operation` is a string with SQL command that is exactly the same as the
2025-02-20 11:17:26.480 last executed command, the internally prepared `Statement` from last execution
2025-02-20 11:17:26.489 is reused.
2025-02-20 11:17:26.495
2025-02-20 11:17:26.502 If cursor is open, it's closed before new statement is executed.
2025-02-20 11:17:26.509 """
2025-02-20 11:17:26.515 >       self._execute(operation, parameters)
2025-02-20 11:17:26.520
2025-02-20 11:17:26.530 ../lib/python3.11/site-packages/firebird/driver/core.py:3755:
2025-02-20 11:17:26.537 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:26.544
2025-02-20 11:17:26.551 self = <firebird.driver.core.Cursor object at [hex]>
2025-02-20 11:17:26.567 operation = 'EXECUTE PROCEDURE sp_run ?,?', parameters = (18, 100)
2025-02-20 11:17:26.575 flags = <CursorFlag.NONE: 0>
2025-02-20 11:17:26.582
2025-02-20 11:17:26.592 def _execute(self, operation: Union[str, Statement],
2025-02-20 11:17:26.604 parameters: Sequence=None, flags: CursorFlag=CursorFlag.NONE) -> None:
2025-02-20 11:17:26.614 if not self._transaction.is_active():
2025-02-20 11:17:26.623 self._transaction.begin()
2025-02-20 11:17:26.630 if isinstance(operation, Statement):
2025-02-20 11:17:26.642 if operation._connection() is not self._connection:
2025-02-20 11:17:26.653 raise InterfaceError('Cannot execute Statement that was created by different Connection.')
2025-02-20 11:17:26.667 self.close()
2025-02-20 11:17:26.676 self._stmt = operation
2025-02-20 11:17:26.684 self.__internal = False
2025-02-20 11:17:26.693 elif self._stmt is not None and self._stmt.sql == operation:
2025-02-20 11:17:26.701 # We should execute the same SQL string again
2025-02-20 11:17:26.715 self._clear()
2025-02-20 11:17:26.725 else:
2025-02-20 11:17:26.739 self.close()
2025-02-20 11:17:26.751 self._stmt = self._connection._prepare(operation, self._transaction)
2025-02-20 11:17:26.760 self.__internal = True
2025-02-20 11:17:26.769 self._cursor_flags = flags
2025-02-20 11:17:26.776 in_meta = None
2025-02-20 11:17:26.783 # Execute the statement
2025-02-20 11:17:26.791 try:
2025-02-20 11:17:26.799 if self._stmt._in_cnt > 0:
2025-02-20 11:17:26.807 in_meta, self._stmt._in_buffer = self._pack_input(self._stmt._in_meta,
2025-02-20 11:17:26.816 self._stmt._in_buffer,
2025-02-20 11:17:26.823 parameters)
2025-02-20 11:17:26.830 if self._stmt.has_cursor():
2025-02-20 11:17:26.841 # Statement returns multiple rows
2025-02-20 11:17:26.849 self._result = self._stmt._istmt.open_cursor(self._transaction._tra,
2025-02-20 11:17:26.860 in_meta, self._stmt._in_buffer,
2025-02-20 11:17:26.871 self._stmt._out_meta,
2025-02-20 11:17:26.885 flags)
2025-02-20 11:17:26.897 else:
2025-02-20 11:17:26.913 # Statement may return single row
2025-02-20 11:17:26.924 >               self._stmt._istmt.execute(self._transaction._tra, in_meta,
2025-02-20 11:17:26.932 self._stmt._in_buffer,
2025-02-20 11:17:26.941 self._stmt._out_meta, self._stmt._out_buffer)
2025-02-20 11:17:26.947
2025-02-20 11:17:26.956 ../lib/python3.11/site-packages/firebird/driver/core.py:3643:
2025-02-20 11:17:26.964 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:26.971
2025-02-20 11:17:26.979 self = <firebird.driver.interfaces.iStatement object at [hex]>
2025-02-20 11:17:26.987 transaction = <firebird.driver.interfaces.iTransaction object at [hex]>
2025-02-20 11:17:26.995 in_meta = <firebird.driver.interfaces.iMessageMetadata object at [hex]>
2025-02-20 11:17:27.004 in_buffer = <ctypes.c_char_Array_10 object at [hex]>, out_meta = None
2025-02-20 11:17:27.011 out_buffer = None
2025-02-20 11:17:27.019
2025-02-20 11:17:27.027 def execute(self, transaction: iTransaction, in_meta: iMessageMetadata, in_buffer: bytes,
2025-02-20 11:17:27.035 out_meta: iMessageMetadata, out_buffer: bytes) -> None:
2025-02-20 11:17:27.045 """Executes any SQL statement except returning multiple rows of data.
2025-02-20 11:17:27.055 Partial analogue of `isc_dsql_execute2()` - in and out XSLQDAs replaced with input
2025-02-20 11:17:27.066 and output messages with appropriate buffers."""
2025-02-20 11:17:27.078 result = self.vtable.execute(self, self.status, transaction, in_meta, in_buffer, out_meta, out_buffer)
2025-02-20 11:17:27.087 >           self._check()
2025-02-20 11:17:27.100
2025-02-20 11:17:27.113 ../lib/python3.11/site-packages/firebird/driver/interfaces.py:778:
2025-02-20 11:17:27.124 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:27.133
2025-02-20 11:17:27.141 self = <firebird.driver.interfaces.iStatement object at [hex]>
2025-02-20 11:17:27.147
2025-02-20 11:17:27.155 def _check(self) -> None:
2025-02-20 11:17:27.162 state = self.status.get_state()
2025-02-20 11:17:27.172 if StateFlag.ERRORS in state:
2025-02-20 11:17:27.188 >           raise self.__report(DatabaseError, self.status.get_errors())
2025-02-20 11:17:27.199 E           firebird.driver.types.DatabaseError: Error reading data from the connection.
2025-02-20 11:17:27.209
2025-02-20 11:17:27.221 ../lib/python3.11/site-packages/firebird/driver/interfaces.py:113: DatabaseError
2025-02-20 11:17:27.231
2025-02-20 11:17:27.240 During handling of the above exception, another exception occurred:
2025-02-20 11:17:27.248
2025-02-20 11:17:27.263 act = <firebird.qa.plugin.Action object at [hex]>
2025-02-20 11:17:27.278 tmp_user = <firebird.qa.plugin.User object at [hex]>
2025-02-20 11:17:27.291 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-02-20 11:17:27.301
2025-02-20 11:17:27.314 @pytest.mark.version('>=3.0.4')
2025-02-20 11:17:27.330 def test_1(act: Action, tmp_user: User, capsys):
2025-02-20 11:17:27.346
2025-02-20 11:17:27.356 init_ddl = [
2025-02-20 11:17:27.364 """
2025-02-20 11:17:27.371 set bail on;
2025-02-20 11:17:27.377 recreate sequence g;
2025-02-20 11:17:27.383 create table test(id int primary key, measure int, iter_no int);
2025-02-20 11:17:27.390
2025-02-20 11:17:27.400 create view v_test1 as select * from test;
2025-02-20 11:17:27.413 """
2025-02-20 11:17:27.422 ,'\n'.join( ['create view v_test%s as select * from v_test%s;' % (str(i), str(i-1)) for i in range(2,NESTED_LIMIT+1) ] )
2025-02-20 11:17:27.431 ,f"""
2025-02-20 11:17:27.443 commit;
2025-02-20 11:17:27.455
2025-02-20 11:17:27.467 set term ^;
2025-02-20 11:17:27.476 create procedure sp_run(a_measure smallint, n_iterations int) as
2025-02-20 11:17:27.483 begin
2025-02-20 11:17:27.490 while ( n_iterations > 0 ) do
2025-02-20 11:17:27.495 begin
2025-02-20 11:17:27.501 execute statement 'update v_test{NESTED_LIMIT} set measure = ' || a_measure || ', iter_no = ' || n_iterations;
2025-02-20 11:17:27.508 n_iterations = n_iterations - 1;
2025-02-20 11:17:27.517 end
2025-02-20 11:17:27.526
2025-02-20 11:17:27.536 end
2025-02-20 11:17:27.550 ^
2025-02-20 11:17:27.563 set term ;^
2025-02-20 11:17:27.572 commit;
2025-02-20 11:17:27.580
2025-02-20 11:17:27.588 grant execute on procedure sp_run to {tmp_user.name};
2025-02-20 11:17:27.596 grant select, update on v_test{NESTED_LIMIT} to {tmp_user.name};
2025-02-20 11:17:27.603 grant usage on sequence g to {tmp_user.name};
2025-02-20 11:17:27.610 commit;
2025-02-20 11:17:27.616
2025-02-20 11:17:27.623 insert into v_test{NESTED_LIMIT}(id, measure, iter_no) values(0,-1,-1);
2025-02-20 11:17:27.632 commit;
2025-02-20 11:17:27.644 """
2025-02-20 11:17:27.658 ]
2025-02-20 11:17:27.672
2025-02-20 11:17:27.681 act.expected_stdout = ''
2025-02-20 11:17:27.688 act.isql(input = '\n'.join(init_ddl), combine_output = True)
2025-02-20 11:17:27.695 assert act.clean_stdout == act.clean_expected_stdout
2025-02-20 11:17:27.704 act.reset()
2025-02-20 11:17:27.717
2025-02-20 11:17:27.725 #------------------------------------------------------------
2025-02-20 11:17:27.736
2025-02-20 11:17:27.750 pid_sttm = 'select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection'
2025-02-20 11:17:27.762 >       with act.db.connect() as con_sysdba, act.db.connect(user = tmp_user.name, password = tmp_user.password) as con_nondba:
2025-02-20 11:17:27.774
2025-02-20 11:17:27.785 tests/bugs/gh_6220_test.py:131:
2025-02-20 11:17:27.795 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:27.812
2025-02-20 11:17:27.831 self = Connection[5418]
2025-02-20 11:17:27.839 exc_type = <class 'firebird.driver.types.DatabaseError'>
2025-02-20 11:17:27.844 exc_value = DatabaseError('Error reading data from the connection.')
2025-02-20 11:17:27.855 traceback = <traceback object at [hex]>
2025-02-20 11:17:27.865
2025-02-20 11:17:27.875 def __exit__(self, exc_type, exc_value, traceback) -> None:
2025-02-20 11:17:27.883 >       self.close()
2025-02-20 11:17:27.894
2025-02-20 11:17:27.907 ../lib/python3.11/site-packages/firebird/driver/core.py:1666:
2025-02-20 11:17:27.918 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:27.929
2025-02-20 11:17:27.938 self = Connection[5418]
2025-02-20 11:17:27.945
2025-02-20 11:17:27.954 def close(self) -> None:
2025-02-20 11:17:27.962 """Close the connection and release all associated resources.
2025-02-20 11:17:27.974
2025-02-20 11:17:27.983 Closes all event collectors, transaction managers (with rollback) and statements
2025-02-20 11:17:27.990 associated with this connection before attempt (see Hooks) to close the
2025-02-20 11:17:27.997 connection itself.
2025-02-20 11:17:28.007
2025-02-20 11:17:28.017 Hooks:
2025-02-20 11:17:28.025 Event `.ConnectionHook.DETACH_REQUEST`: Executed before connection
2025-02-20 11:17:28.032 is closed. Hook must have signature::
2025-02-20 11:17:28.038
2025-02-20 11:17:28.044 hook_func(connection: Connection) -> bool
2025-02-20 11:17:28.051
2025-02-20 11:17:28.058 .. note::
2025-02-20 11:17:28.064
2025-02-20 11:17:28.073 If any hook function returns True, connection is NOT closed.
2025-02-20 11:17:28.080
2025-02-20 11:17:28.087 Event `.ConnectionHook.CLOSED`: Executed after connection is closed.
2025-02-20 11:17:28.094 Hook must have signature::
2025-02-20 11:17:28.101
2025-02-20 11:17:28.107 hook_func(connection: Connection) -> None
2025-02-20 11:17:28.114
2025-02-20 11:17:28.129 Any value returned by hook is ignored.
2025-02-20 11:17:28.138
2025-02-20 11:17:28.146 Important:
2025-02-20 11:17:28.152 Closed connection SHALL NOT be used anymore.
2025-02-20 11:17:28.162 """
2025-02-20 11:17:28.170 if not self.is_closed():
2025-02-20 11:17:28.178 retain = False
2025-02-20 11:17:28.186 try:
2025-02-20 11:17:28.193 >               self._close()
2025-02-20 11:17:28.201
2025-02-20 11:17:28.209 ../lib/python3.11/site-packages/firebird/driver/core.py:1854:
2025-02-20 11:17:28.217 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:28.223
2025-02-20 11:17:28.229 self = Connection[5418]
2025-02-20 11:17:28.235
2025-02-20 11:17:28.240 def _close(self) -> None:
2025-02-20 11:17:28.246 if self.__schema is not None:
2025-02-20 11:17:28.254 self.__schema._set_internal(False)
2025-02-20 11:17:28.262 self.__schema.close()
2025-02-20 11:17:28.269 if self.__monitor is not None:
2025-02-20 11:17:28.275 self.__monitor._set_internal(False)
2025-02-20 11:17:28.283 self.__monitor.close()
2025-02-20 11:17:28.289 self._ic.close()
2025-02-20 11:17:28.295 for collector in self.__ecollectors:
2025-02-20 11:17:28.300 collector.close()
2025-02-20 11:17:28.306 >       self.main_transaction._finish(DefaultAction.ROLLBACK)
2025-02-20 11:17:28.312
2025-02-20 11:17:28.318 ../lib/python3.11/site-packages/firebird/driver/core.py:1691:
2025-02-20 11:17:28.333 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:28.344
2025-02-20 11:17:28.352 self = <firebird.driver.core.TransactionManager object at [hex]>
2025-02-20 11:17:28.359 default_action = <DefaultAction.ROLLBACK: 2>
2025-02-20 11:17:28.365
2025-02-20 11:17:28.372 def _finish(self, default_action: DefaultAction=None) -> None:
2025-02-20 11:17:28.387 try:
2025-02-20 11:17:28.399 if self._tra is not None:
2025-02-20 11:17:28.405 if default_action is None:
2025-02-20 11:17:28.413 default_action = self.default_action
2025-02-20 11:17:28.421 if default_action == DefaultAction.COMMIT:
2025-02-20 11:17:28.432 self.commit()
2025-02-20 11:17:28.447 else:
2025-02-20 11:17:28.461 >                   self.rollback()
2025-02-20 11:17:28.468
2025-02-20 11:17:28.474 ../lib/python3.11/site-packages/firebird/driver/core.py:2399:
2025-02-20 11:17:28.481 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:28.488
2025-02-20 11:17:28.495 self = <firebird.driver.core.TransactionManager object at [hex]>
2025-02-20 11:17:28.502
2025-02-20 11:17:28.512 def rollback(self, *, retaining: bool=False, savepoint: str=None) -> None:
2025-02-20 11:17:28.525 """Rolls back the transaction managed by this instance.
2025-02-20 11:17:28.538
2025-02-20 11:17:28.546 Arguments:
2025-02-20 11:17:28.555 retaining: When True, the transaction context is retained after rollback.
2025-02-20 11:17:28.564 savepoint: When specified, the transaction is rolled back to savepoint with given name.
2025-02-20 11:17:28.572
2025-02-20 11:17:28.579 Raises:
2025-02-20 11:17:28.587 InterfaceError: When both retaining and savepoint parameters are specified.
2025-02-20 11:17:28.594 """
2025-02-20 11:17:28.605 assert not self.__closed
2025-02-20 11:17:28.614 assert self.is_active()
2025-02-20 11:17:28.623 if retaining and savepoint:
2025-02-20 11:17:28.633 raise InterfaceError("Can't rollback to savepoint while retaining context")
2025-02-20 11:17:28.641 if savepoint:
2025-02-20 11:17:28.657 self.execute_immediate(f'rollback to {savepoint}')
2025-02-20 11:17:28.667 else:
2025-02-20 11:17:28.676 if retaining:
2025-02-20 11:17:28.683 self._tra.rollback_retaining()
2025-02-20 11:17:28.691 else:
2025-02-20 11:17:28.699 >               self._close_cursors()
2025-02-20 11:17:28.711
2025-02-20 11:17:28.721 ../lib/python3.11/site-packages/firebird/driver/core.py:2486:
2025-02-20 11:17:28.729 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:28.735
2025-02-20 11:17:28.743 self = <firebird.driver.core.TransactionManager object at [hex]>
2025-02-20 11:17:28.756
2025-02-20 11:17:28.770 def _close_cursors(self) -> None:
2025-02-20 11:17:28.780 for cursor in self._cursors:
2025-02-20 11:17:28.788 c = cursor()
2025-02-20 11:17:28.796 if c:
2025-02-20 11:17:28.803 >               c.close()
2025-02-20 11:17:28.812
2025-02-20 11:17:28.821 ../lib/python3.11/site-packages/firebird/driver/core.py:2388:
2025-02-20 11:17:28.829 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:28.842
2025-02-20 11:17:28.853 self = <firebird.driver.core.Cursor object at [hex]>
2025-02-20 11:17:28.861
2025-02-20 11:17:28.868 def close(self) -> None:
2025-02-20 11:17:28.880 """Close the cursor and release all associated resources.
2025-02-20 11:17:28.889
2025-02-20 11:17:28.897 The result set (if any) from last executed statement is released, and if executed
2025-02-20 11:17:28.903 `Statement` was not supplied externally, it's released as well.
2025-02-20 11:17:28.918
2025-02-20 11:17:28.932 Note:
2025-02-20 11:17:28.942 The closed cursor could be used to execute further SQL commands.
2025-02-20 11:17:28.956 """
2025-02-20 11:17:28.965 self._clear()
2025-02-20 11:17:28.974 if self._stmt is not None:
2025-02-20 11:17:28.981 if self.__internal:
2025-02-20 11:17:28.989 >               self._stmt.free()
2025-02-20 11:17:28.996
2025-02-20 11:17:29.003 ../lib/python3.11/site-packages/firebird/driver/core.py:3791:
2025-02-20 11:17:29.011 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:29.018
2025-02-20 11:17:29.025 self = Statement[EXECUTE PROCEDURE sp_run ?,?]
2025-02-20 11:17:29.032
2025-02-20 11:17:29.038 def free(self) -> None:
2025-02-20 11:17:29.047 """Release the statement and all associated resources.
2025-02-20 11:17:29.053
2025-02-20 11:17:29.059 Important:
2025-02-20 11:17:29.066 The statement SHALL NOT be used after call to this method.
2025-02-20 11:17:29.077 """
2025-02-20 11:17:29.091 if self._in_meta is not None:
2025-02-20 11:17:29.102 self._in_meta.release()
2025-02-20 11:17:29.110 self._in_meta = None
2025-02-20 11:17:29.123 if self._out_meta is not None:
2025-02-20 11:17:29.134 self._out_meta.release()
2025-02-20 11:17:29.144 self._out_meta = None
2025-02-20 11:17:29.153 if self._istmt is not None:
2025-02-20 11:17:29.160 >           self._istmt.free()
2025-02-20 11:17:29.167
2025-02-20 11:17:29.174 ../lib/python3.11/site-packages/firebird/driver/core.py:2736:
2025-02-20 11:17:29.183 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:29.191
2025-02-20 11:17:29.198 self = <firebird.driver.interfaces.iStatement object at [hex]>
2025-02-20 11:17:29.207
2025-02-20 11:17:29.216 def free(self) -> None:
2025-02-20 11:17:29.225 "Free statement, releases interface on success"
2025-02-20 11:17:29.245 self.vtable.free(self, self.status)
2025-02-20 11:17:29.255 >       self._check()
2025-02-20 11:17:29.264
2025-02-20 11:17:29.272 ../lib/python3.11/site-packages/firebird/driver/interfaces.py:832:
2025-02-20 11:17:29.280 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-02-20 11:17:29.287
2025-02-20 11:17:29.294 self = <firebird.driver.interfaces.iStatement object at [hex]>
2025-02-20 11:17:29.301
2025-02-20 11:17:29.307 def _check(self) -> None:
2025-02-20 11:17:29.314 state = self.status.get_state()
2025-02-20 11:17:29.322 if StateFlag.ERRORS in state:
2025-02-20 11:17:29.332 >           raise self.__report(DatabaseError, self.status.get_errors())
2025-02-20 11:17:29.345 E           firebird.driver.types.DatabaseError: Error writing data to the connection.
2025-02-20 11:17:29.354
2025-02-20 11:17:29.361 ../lib/python3.11/site-packages/firebird/driver/interfaces.py:113: DatabaseError
2025-02-20 11:17:29.376 ---------------------------- Captured stdout setup -----------------------------
2025-02-20 11:17:29.392 Creating db: localhost:/var/tmp/qa_2024/test_11415/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2025-02-20 11:17:29.404 CREATE user: TMP$GH_6220 PLUGIN: Srp
2025-02-20 11:17:29.415 --------------------------- Captured stdout teardown ---------------------------
2025-02-20 11:17:29.429 DROP user: TMP$GH_6220 PLUGIN: Srp
3 #text
act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_user = <firebird.qa.plugin.User pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.version('>=3.0.4')
    def test_1(act: Action, tmp_user: User, capsys):
    
        init_ddl = [
            """
                set bail on;
                recreate sequence g;
                create table test(id int primary key, measure int, iter_no int);
    
                create view v_test1 as select * from test;
            """
            ,'\n'.join( ['create view v_test%s as select * from v_test%s;' % (str(i), str(i-1)) for i in range(2,NESTED_LIMIT+1) ] )
            ,f"""
                commit;
    
                set term ^;
                create procedure sp_run(a_measure smallint, n_iterations int) as
                begin
                    while ( n_iterations > 0 ) do
                    begin
                        execute statement 'update v_test{NESTED_LIMIT} set measure = ' || a_measure || ', iter_no = ' || n_iterations;
                        n_iterations = n_iterations - 1;
                    end
    
                end
                ^
                set term ;^
                commit;
    
                grant execute on procedure sp_run to {tmp_user.name};
                grant select, update on v_test{NESTED_LIMIT} to {tmp_user.name};
                grant usage on sequence g to {tmp_user.name};
                commit;
    
                insert into v_test{NESTED_LIMIT}(id, measure, iter_no) values(0,-1,-1);
                commit;
            """
        ]
    
        act.expected_stdout = ''
        act.isql(input = '\n'.join(init_ddl), combine_output = True)
        assert act.clean_stdout == act.clean_expected_stdout
        act.reset()
    
        #------------------------------------------------------------
    
        pid_sttm = 'select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection'
        with act.db.connect() as con_sysdba, act.db.connect(user = tmp_user.name, password = tmp_user.password) as con_nondba:
            cur_sysdba = con_sysdba.cursor()
            cur_nondba = con_nondba.cursor()
            cur_sysdba.execute(pid_sttm)
            cur_nondba.execute(pid_sttm)
            pid_sysdba = cur_sysdba.fetchone()[0]
            pid_nondba = cur_nondba.fetchone()[0]
    
            sp_time = {}
            for who in (act.db.user, tmp_user.name):
                fb_pid = pid_sysdba if who == act.db.user else pid_nondba
                con = con_sysdba if who == act.db.user else con_nondba
                cur = cur_sysdba if who == act.db.user else cur_nondba
    
                for iter_no in range(0, N_MEASURES):
                    fb_info_init = psutil.Process(fb_pid).cpu_times()
>                   cur.callproc( 'sp_run', (iter_no, N_COUNT_PER_MEASURE,) )

tests/bugs/gh_6220_test.py:147: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.Cursor pytest object at [hex]>
proc_name = 'sp_run', parameters = (18, 100)

    def callproc(self, proc_name: str, parameters: Sequence=None) -> None:
        """Executes a stored procedure with the given name.
    
        Arguments:
            proc_name: Stored procedure name.
            parameters: Sequence of parameters. Must contain one entry for each argument
                        that the procedure expects.
    
        .. note::
    
           If stored procedure does have output parameters, you must retrieve their values
           saparatelly by `.Cursor.fetchone()` call. This method is not very convenient,
           but conforms to Python DB API 2.0. If you don't require conformance to Python
           DB API, it's recommended to use more convenient method `.Cursor.call_procedure()`
           instead.
        """
        params = [] if parameters is None else parameters
        sql = ('EXECUTE PROCEDURE ' + proc_name + ' '
               + ','.join('?' * len(params)))
>       self.execute(sql, params)

../lib/python3.11/site-packages/firebird/driver/core.py:3682: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.Cursor pytest object at [hex]>
operation = 'EXECUTE PROCEDURE sp_run ?,?', parameters = (18, 100)

    def execute(self, operation: Union[str, Statement], parameters: Sequence[Any]=None) -> Cursor:
        """Executes SQL command or prepared `Statement`.
    
        Starts new transaction if transaction manager associated with cursor is not active.
    
        Arguments:
            operation: SQL command or prepared `Statement`.
            parameters: Sequence of parameters. Must contain one entry for each argument
                        that the operation expects.
    
        Returns:
            `self` so call to execute could be used as iterator over returned rows.
    
        Note:
            If `operation` is a string with SQL command that is exactly the same as the
            last executed command, the internally prepared `Statement` from last execution
            is reused.
    
            If cursor is open, it's closed before new statement is executed.
        """
>       self._execute(operation, parameters)

../lib/python3.11/site-packages/firebird/driver/core.py:3755: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.Cursor pytest object at [hex]>
operation = 'EXECUTE PROCEDURE sp_run ?,?', parameters = (18, 100)
flags = <CursorFlag.NONE: 0>

    def _execute(self, operation: Union[str, Statement],
                 parameters: Sequence=None, flags: CursorFlag=CursorFlag.NONE) -> None:
        if not self._transaction.is_active():
            self._transaction.begin()
        if isinstance(operation, Statement):
            if operation._connection() is not self._connection:
                raise InterfaceError('Cannot execute Statement that was created by different Connection.')
            self.close()
            self._stmt = operation
            self.__internal = False
        elif self._stmt is not None and self._stmt.sql == operation:
            # We should execute the same SQL string again
            self._clear()
        else:
            self.close()
            self._stmt = self._connection._prepare(operation, self._transaction)
            self.__internal = True
        self._cursor_flags = flags
        in_meta = None
        # Execute the statement
        try:
            if self._stmt._in_cnt > 0:
                in_meta, self._stmt._in_buffer = self._pack_input(self._stmt._in_meta,
                                                                  self._stmt._in_buffer,
                                                                  parameters)
            if self._stmt.has_cursor():
                # Statement returns multiple rows
                self._result = self._stmt._istmt.open_cursor(self._transaction._tra,
                                                            in_meta, self._stmt._in_buffer,
                                                            self._stmt._out_meta,
                                                            flags)
            else:
                # Statement may return single row
>               self._stmt._istmt.execute(self._transaction._tra, in_meta,
                                         self._stmt._in_buffer,
                                         self._stmt._out_meta, self._stmt._out_buffer)

../lib/python3.11/site-packages/firebird/driver/core.py:3643: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.interfaces.iStatement pytest object at [hex]>
transaction = <firebird.driver.interfaces.iTransaction pytest object at [hex]>
in_meta = <firebird.driver.interfaces.iMessageMetadata pytest object at [hex]>
in_buffer = <ctypes.c_char_Array_10 pytest object at [hex]>, out_meta = None
out_buffer = None

        def execute(self, transaction: iTransaction, in_meta: iMessageMetadata, in_buffer: bytes,
                    out_meta: iMessageMetadata, out_buffer: bytes) -> None:
            """Executes any SQL statement except returning multiple rows of data.
    Partial analogue of `isc_dsql_execute2()` - in and out XSLQDAs replaced with input
    and output messages with appropriate buffers."""
            result = self.vtable.execute(self, self.status, transaction, in_meta, in_buffer, out_meta, out_buffer)
>           self._check()

../lib/python3.11/site-packages/firebird/driver/interfaces.py:778: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.interfaces.iStatement pytest object at [hex]>

    def _check(self) -> None:
        state = self.status.get_state()
        if StateFlag.ERRORS in state:
>           raise self.__report(DatabaseError, self.status.get_errors())
E           firebird.driver.types.DatabaseError: Error reading data from the connection.

../lib/python3.11/site-packages/firebird/driver/interfaces.py:113: DatabaseError

During handling of the above exception, another exception occurred:

act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_user = <firebird.qa.plugin.User pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.version('>=3.0.4')
    def test_1(act: Action, tmp_user: User, capsys):
    
        init_ddl = [
            """
                set bail on;
                recreate sequence g;
                create table test(id int primary key, measure int, iter_no int);
    
                create view v_test1 as select * from test;
            """
            ,'\n'.join( ['create view v_test%s as select * from v_test%s;' % (str(i), str(i-1)) for i in range(2,NESTED_LIMIT+1) ] )
            ,f"""
                commit;
    
                set term ^;
                create procedure sp_run(a_measure smallint, n_iterations int) as
                begin
                    while ( n_iterations > 0 ) do
                    begin
                        execute statement 'update v_test{NESTED_LIMIT} set measure = ' || a_measure || ', iter_no = ' || n_iterations;
                        n_iterations = n_iterations - 1;
                    end
    
                end
                ^
                set term ;^
                commit;
    
                grant execute on procedure sp_run to {tmp_user.name};
                grant select, update on v_test{NESTED_LIMIT} to {tmp_user.name};
                grant usage on sequence g to {tmp_user.name};
                commit;
    
                insert into v_test{NESTED_LIMIT}(id, measure, iter_no) values(0,-1,-1);
                commit;
            """
        ]
    
        act.expected_stdout = ''
        act.isql(input = '\n'.join(init_ddl), combine_output = True)
        assert act.clean_stdout == act.clean_expected_stdout
        act.reset()
    
        #------------------------------------------------------------
    
        pid_sttm = 'select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection'
>       with act.db.connect() as con_sysdba, act.db.connect(user = tmp_user.name, password = tmp_user.password) as con_nondba:

tests/bugs/gh_6220_test.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Connection[5418]
exc_type = <class 'firebird.driver.types.DatabaseError'>
exc_value = DatabaseError('Error reading data from the connection.')
traceback = <traceback pytest object at [hex]>

    def __exit__(self, exc_type, exc_value, traceback) -> None:
>       self.close()

../lib/python3.11/site-packages/firebird/driver/core.py:1666: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Connection[5418]

    def close(self) -> None:
        """Close the connection and release all associated resources.
    
        Closes all event collectors, transaction managers (with rollback) and statements
        associated with this connection before attempt (see Hooks) to close the
        connection itself.
    
        Hooks:
            Event `.ConnectionHook.DETACH_REQUEST`: Executed before connection
            is closed. Hook must have signature::
    
                hook_func(connection: Connection) -> bool
    
            .. note::
    
               If any hook function returns True, connection is NOT closed.
    
            Event `.ConnectionHook.CLOSED`: Executed after connection is closed.
            Hook must have signature::
    
                hook_func(connection: Connection) -> None
    
            Any value returned by hook is ignored.
    
        Important:
            Closed connection SHALL NOT be used anymore.
        """
        if not self.is_closed():
            retain = False
            try:
>               self._close()

../lib/python3.11/site-packages/firebird/driver/core.py:1854: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Connection[5418]

    def _close(self) -> None:
        if self.__schema is not None:
            self.__schema._set_internal(False)
            self.__schema.close()
        if self.__monitor is not None:
            self.__monitor._set_internal(False)
            self.__monitor.close()
        self._ic.close()
        for collector in self.__ecollectors:
            collector.close()
>       self.main_transaction._finish(DefaultAction.ROLLBACK)

../lib/python3.11/site-packages/firebird/driver/core.py:1691: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.TransactionManager pytest object at [hex]>
default_action = <DefaultAction.ROLLBACK: 2>

    def _finish(self, default_action: DefaultAction=None) -> None:
        try:
            if self._tra is not None:
                if default_action is None:
                    default_action = self.default_action
                if default_action == DefaultAction.COMMIT:
                    self.commit()
                else:
>                   self.rollback()

../lib/python3.11/site-packages/firebird/driver/core.py:2399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.TransactionManager pytest object at [hex]>

    def rollback(self, *, retaining: bool=False, savepoint: str=None) -> None:
        """Rolls back the transaction managed by this instance.
    
        Arguments:
            retaining: When True, the transaction context is retained after rollback.
            savepoint: When specified, the transaction is rolled back to savepoint with given name.
    
        Raises:
            InterfaceError: When both retaining and savepoint parameters are specified.
        """
        assert not self.__closed
        assert self.is_active()
        if retaining and savepoint:
            raise InterfaceError("Can't rollback to savepoint while retaining context")
        if savepoint:
            self.execute_immediate(f'rollback to {savepoint}')
        else:
            if retaining:
                self._tra.rollback_retaining()
            else:
>               self._close_cursors()

../lib/python3.11/site-packages/firebird/driver/core.py:2486: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.TransactionManager pytest object at [hex]>

    def _close_cursors(self) -> None:
        for cursor in self._cursors:
            c = cursor()
            if c:
>               c.close()

../lib/python3.11/site-packages/firebird/driver/core.py:2388: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.core.Cursor pytest object at [hex]>

    def close(self) -> None:
        """Close the cursor and release all associated resources.
    
        The result set (if any) from last executed statement is released, and if executed
        `Statement` was not supplied externally, it's released as well.
    
        Note:
            The closed cursor could be used to execute further SQL commands.
        """
        self._clear()
        if self._stmt is not None:
            if self.__internal:
>               self._stmt.free()

../lib/python3.11/site-packages/firebird/driver/core.py:3791: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Statement[EXECUTE PROCEDURE sp_run ?,?]

    def free(self) -> None:
        """Release the statement and all associated resources.
    
        Important:
            The statement SHALL NOT be used after call to this method.
        """
        if self._in_meta is not None:
            self._in_meta.release()
            self._in_meta = None
        if self._out_meta is not None:
            self._out_meta.release()
            self._out_meta = None
        if self._istmt is not None:
>           self._istmt.free()

../lib/python3.11/site-packages/firebird/driver/core.py:2736: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.interfaces.iStatement pytest object at [hex]>

    def free(self) -> None:
        "Free statement, releases interface on success"
        self.vtable.free(self, self.status)
>       self._check()

../lib/python3.11/site-packages/firebird/driver/interfaces.py:832: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <firebird.driver.interfaces.iStatement pytest object at [hex]>

    def _check(self) -> None:
        state = self.status.get_state()
        if StateFlag.ERRORS in state:
>           raise self.__report(DatabaseError, self.status.get_errors())
E           firebird.driver.types.DatabaseError: Error writing data to the connection.

../lib/python3.11/site-packages/firebird/driver/interfaces.py:113: DatabaseError
Full history of outcomes and elapsed time, ms:
NN SNAP_INFO CS_outcome SS_outcome CS_run_time SS_run_time CS_run_beg CS_run_end SS_run_beg SS_run_end
1 5.0.3.1674 2025.06.27 3ee5c P P 28159 28995 2025.06.30 12:34:41.972 2025.06.30 12:35:10.131 2025.06.30 11:15:59.506 2025.06.30 11:16:28.501
2 5.0.3.1657 2025.06.19 4bd4c P P 27703 27633 2025.06.27 12:07:01.774 2025.06.27 12:07:29.477 2025.06.27 10:50:11.563 2025.06.27 10:50:39.196
3 5.0.3.1657 2025.06.11 dae6f P P 27557 28521 2025.06.17 07:11:47.561 2025.06.17 07:12:15.118 2025.06.17 05:53:48.750 2025.06.17 05:54:17.271
4 5.0.3.1657 2025.06.10 dbc92 P P 29475 32091 2025.06.11 12:03:23.053 2025.06.11 12:03:52.528 2025.06.11 10:33:03.686 2025.06.11 10:33:35.777
5 5.0.3.1656 2025.05.20 c4b11 P P 30948 29909 2025.06.10 11:55:09.457 2025.06.10 11:55:40.405 2025.06.10 10:33:16.297 2025.06.10 10:33:46.206
6 5.0.3.1652 2025.05.13 f51c6 P P 35408 34511 2025.05.20 04:56:46.877 2025.05.20 04:57:22.285 2025.05.20 03:23:32.550 2025.05.20 03:24:07.061
7 5.0.3.1651 2025.04.30 141ef P P 34876 33799 2025.05.13 11:55:06.226 2025.05.13 11:55:41.102 2025.05.13 10:20:16.144 2025.05.13 10:20:49.943
8 5.0.3.1650 2025.04.28 4cbff P P 35595 31950 2025.05.01 11:28:46.845 2025.05.01 11:29:22.440 2025.05.01 09:55:03.515 2025.05.01 09:55:35.465
9 5.0.3.1649 2025.04.21 5b2d0 P P 34117 33342 2025.04.28 05:26:53.861 2025.04.28 05:27:27.978 2025.04.28 03:55:20.665 2025.04.28 03:55:54.007
10 5.0.3.1648 2025.04.18 2f4c5 P P 32908 31650 2025.04.20 05:18:49.078 2025.04.20 05:19:21.986 2025.04.20 03:50:17.649 2025.04.20 03:50:49.299
11 5.0.3.1635 2025.03.31 22ec6 P P 34697 33535 2025.04.18 11:41:22.984 2025.04.18 11:41:57.681 2025.04.18 10:08:14.190 2025.04.18 10:08:47.725
12 5.0.3.1633 2025.03.28 3123a P P 32836 31941 2025.03.31 10:16:45.135 2025.03.31 10:17:17.971 2025.03.31 08:49:56.562 2025.03.31 08:50:28.503
13 5.0.3.1633 2025.03.27 e0fb8 F F 52157 126504 2025.03.28 10:50:45.799 2025.03.28 10:51:37.956 2025.03.28 09:19:39.864 2025.03.28 09:21:46.368
14 5.0.3.1631 2025.03.21 1925b F F 33641 58956 2025.03.27 10:39:04.553 2025.03.27 10:39:38.194 2025.03.27 09:10:01.046 2025.03.27 09:11:00.002
15 5.0.3.1628 2025.03.14 16d05 F F 637 395 2025.03.17 08:11:18.970 2025.03.17 08:11:19.607 2025.03.17 06:33:51.507 2025.03.17 06:33:51.902
16 5.0.3.1627 2025.02.26 4e218 F F 660 426 2025.03.14 11:25:54.429 2025.03.14 11:25:55.089 2025.03.14 09:47:03.779 2025.03.14 09:47:04.205
17 5.0.3.1624 2025.02.25 dc3b2 F F 675 379 2025.02.26 10:17:19.932 2025.02.26 10:17:20.607 2025.02.26 08:44:09.415 2025.02.26 08:44:09.794
18 5.0.2.1615 2025.02.20 4a726 F F 693 378 2025.02.25 10:44:34.062 2025.02.25 10:44:34.755 2025.02.25 09:10:04.422 2025.02.25 09:10:04.800
19 5.0.2.1615 2025.02.14 9cb76 F F 688 372 2025.02.20 07:34:23.271 2025.02.20 07:34:23.959 2025.02.20 06:03:16.713 2025.02.20 06:03:17.085
20 5.0.2.1577 2024.12.24 3c80e P P 798 388 2025.02.14 10:47:30.473 2025.02.14 10:47:31.271 2025.02.14 09:16:41.097 2025.02.14 09:16:41.485
21 5.0.2.1576 2024.12.17 646b0 P P 519 252 2024.12.24 20:14:34.393 2024.12.24 20:14:34.912 2024.12.24 17:05:20.617 2024.12.24 17:05:20.869
22 5.0.2.1575 2024.12.08 63d39 P P 502 235 2024.12.16 07:56:30.288 2024.12.16 07:56:30.790 2024.12.16 06:48:40.054 2024.12.16 06:48:40.289
23 5.0.2.1567 2024.11.26 56e63 P P 547 238 2024.12.04 07:36:58.745 2024.12.04 07:36:59.292 2024.12.04 06:27:29.965 2024.12.04 06:27:30.203
24 5.0.2.1567 2024.11.21 96f61 P P 516 235 2024.11.26 05:19:27.180 2024.11.26 05:19:27.696 2024.11.26 04:13:00.670 2024.11.26 04:13:00.905
25 5.0.2.1567 2024.11.18 e1289 P P 528 277 2024.11.21 07:23:53.575 2024.11.21 07:23:54.103 2024.11.21 06:18:15.134 2024.11.21 06:18:15.411
26 5.0.2.1533 2024.10.23 0ec43 P P 568 260 2024.11.18 07:39:48.550 2024.11.18 07:39:49.118 2024.11.18 06:32:15.008 2024.11.18 06:32:15.268
27 5.0.2.1533 2024.10.22 8af7a P P 526 270 2024.10.23 09:36:53.293 2024.10.23 09:36:53.819 2024.10.23 08:28:10.358 2024.10.23 08:28:10.628
28 5.0.2.1532 2024.10.15 36dc0 P P 563 242 2024.10.22 19:48:33.501 2024.10.22 19:48:34.064 2024.10.22 18:40:22.887 2024.10.22 18:40:23.129
29 5.0.2.1518 2024.10.04 259ba P P 560 279 2024.10.15 09:22:15.417 2024.10.15 09:22:15.977 2024.10.15 08:13:48.181 2024.10.15 08:13:48.460
30 5.0.2.1518 2024.09.26 703cd P P 666 250 2024.10.03 07:49:11.930 2024.10.03 07:49:12.596 2024.10.03 06:38:49.187 2024.10.03 06:38:49.437
31 5.0.2.1489 2024.09.05 40838 P P 630 248 2024.09.25 07:50:04.098 2024.09.25 07:50:04.728 2024.09.25 06:38:28.193 2024.09.25 06:38:28.441
32 5.0.2.1489 2024.08.31 994a6 P P 800 450 2024.09.05 11:56:30.269 2024.09.05 11:56:31.069 2024.09.05 10:19:35.799 2024.09.05 10:19:36.249
33 5.0.2.1476 2024.08.09 843ea P P 1239 591 2024.08.31 14:24:44.833 2024.08.31 14:24:46.072 2024.08.31 12:19:46.895 2024.08.31 12:19:47.486
34 5.0.1.1454 2024.08.08 30f9f P P 699 286 2024.08.09 08:29:58.048 2024.08.09 08:29:58.747 2024.08.09 07:17:50.708 2024.08.09 07:17:50.994
35 5.0.1.1453 2024.08.06 1b9d0 P P 653 430 2024.08.08 21:08:17.081 2024.08.08 21:08:17.734 2024.08.08 19:56:03.710 2024.08.08 19:56:04.140
36 5.0.1.1453 2024.07.30 48044 P P 421 166 2024.08.06 07:11:55.691 2024.08.06 07:11:56.112 2024.08.06 06:08:48.766 2024.08.06 06:08:48.932
37 5.0.1.1453 2024.07.28 8d956 P P 416 155 2024.07.30 07:06:30.825 2024.07.30 07:06:31.241 2024.07.30 06:04:06.045 2024.07.30 06:04:06.200
38 5.0.1.1429 2024.07.19 8ee90 P P 423 244 2024.07.27 07:06:23.239 2024.07.27 07:06:23.662 2024.07.27 06:02:58.613 2024.07.27 06:02:58.857
39 5.0.1.1428 2024.07.15 00392 P P 41310 40408 2024.07.19 07:00:04.442 2024.07.19 07:00:45.752 2024.07.19 05:58:02.235 2024.07.19 05:58:42.643
40 5.0.1.1428 2024.06.30 67a31 P P 41010 42395 2024.07.15 07:01:39.678 2024.07.15 07:02:20.688 2024.07.15 05:58:56.942 2024.07.15 05:59:39.337
41 5.0.1.1415 2024.06.11 31d74 P P 36282 35941 2024.06.22 06:49:37.288 2024.06.22 06:50:13.570 2024.06.22 05:49:45.319 2024.06.22 05:50:21.260

Elapsed time, ms. Chart for last 41 runs:

Last commits information (all timestamps in UTC):