2 @message |
Server crashed ?
assert
- Statement failed, SQLSTATE = HY001
+ Statement failed, SQLSTATE = 08006
- Stack overflow. The resource requirements of the runtime stack have exceeded the memory available to it.
+ Error reading data from the connection.
+ Statement failed, SQLSTATE = 08006
+ Error writing data to the connection.
+ Statement failed, SQLSTATE = 08006
+ Error writing data to the connection.
LOG DETAILS:
2024-10-16 07:26:05.632
2024-10-16 07:26:05.632 act = <firebird.qa.plugin.Action object at [hex]>
2024-10-16 07:26:05.632 tmp_sql = WindowsPath('H:/QA/temp/qa2024.tmp/fbqa/test_11589/tmp_8255_non_ascii_ddl.sql')
2024-10-16 07:26:05.632 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2024-10-16 07:26:05.632
2024-10-16 07:26:05.632 @pytest.mark.skipif(platform.system() != 'Windows', reason='See ticket note.')
2024-10-16 07:26:05.632 @pytest.mark.version('>=4.0.6')
2024-10-16 07:26:05.632 def test_1(act: Action, tmp_sql: Path, capsys):
2024-10-16 07:26:05.632
2024-10-16 07:26:05.632 long_expr = '\n'.join( (
2024-10-16 07:26:05.632 'select'
2024-10-16 07:26:05.632 ,'+'.join( ('1') * 100000 )
2024-10-16 07:26:05.632 ,'from rdb$database;'
2024-10-16 07:26:05.632 )
2024-10-16 07:26:05.632 )
2024-10-16 07:26:05.632
2024-10-16 07:26:05.632 tmp_sql.write_bytes(long_expr.encode('utf-8'))
2024-10-16 07:26:05.632
2024-10-16 07:26:05.632 act.isql(switches=['-q'], input_file=tmp_sql, combine_output = True, charset='win1251')
2024-10-16 07:26:05.633
2024-10-16 07:26:05.633 act.expected_stdout = f"""
2024-10-16 07:26:05.633 Statement failed, SQLSTATE = HY001
2024-10-16 07:26:05.633 Stack overflow. The resource requirements of the runtime stack have exceeded the memory available to it.
2024-10-16 07:26:05.633 """
2024-10-16 07:26:05.633 > assert act.clean_stdout == act.clean_expected_stdout
2024-10-16 07:26:05.633 E assert
2024-10-16 07:26:05.633 E - Statement failed, SQLSTATE = HY001
2024-10-16 07:26:05.633 E + Statement failed, SQLSTATE = 08006
2024-10-16 07:26:05.633 E - Stack overflow. The resource requirements of the runtime stack have exceeded the memory available to it.
2024-10-16 07:26:05.633 E + Error reading data from the connection.
2024-10-16 07:26:05.633 E + Statement failed, SQLSTATE = 08006
2024-10-16 07:26:05.633 E + Error writing data to the connection.
2024-10-16 07:26:05.633 E + Statement failed, SQLSTATE = 08006
2024-10-16 07:26:05.633 E + Error writing data to the connection.
2024-10-16 07:26:05.633
2024-10-16 07:26:05.633 tests\bugs\gh_8255_test.py:54: AssertionError
2024-10-16 07:26:05.633 ---------------------------- Captured stdout setup ----------------------------
2024-10-16 07:26:05.633 Creating db: localhost:H:\QA\temp\qa2024.tmp\fbqa\test_11589\test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
|
3 #text |
act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_sql = WindowsPath('H:/QA/temp/qa2024.tmp/fbqa/test_11589/tmp_8255_non_ascii_ddl.sql')
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>
@pytest.mark.skipif(platform.system() != 'Windows', reason='See ticket note.')
@pytest.mark.version('>=4.0.6')
def test_1(act: Action, tmp_sql: Path, capsys):
long_expr = '\n'.join( (
'select'
,'+'.join( ('1') * 100000 )
,'from rdb$database;'
)
)
tmp_sql.write_bytes(long_expr.encode('utf-8'))
act.isql(switches=['-q'], input_file=tmp_sql, combine_output = True, charset='win1251')
act.expected_stdout = f"""
Statement failed, SQLSTATE = HY001
Stack overflow. The resource requirements of the runtime stack have exceeded the memory available to it.
"""
> assert act.clean_stdout == act.clean_expected_stdout
E assert
E - Statement failed, SQLSTATE = HY001
E + Statement failed, SQLSTATE = 08006
E - Stack overflow. The resource requirements of the runtime stack have exceeded the memory available to it.
E + Error reading data from the connection.
E + Statement failed, SQLSTATE = 08006
E + Error writing data to the connection.
E + Statement failed, SQLSTATE = 08006
E + Error writing data to the connection.
tests\bugs\gh_8255_test.py:54: AssertionError
|