01. DADOS GERAIS

Produto:

TOTVS Framework

Linha de Produto:

Linha Protheus 

Segmento:

Framework 

Módulo:ATUALIZAÇÃO
Função:ATUALIZAÇÃO DE RELEASE (UPDDISTR)
Ticket:23272486
Requisito/Story/Issue (informe o requisito relacionado) :DFRM4-13657


02. 
SITUAÇÃO/REQUISITO

16/04/2025 22:08:16 : Error : 8115 (22003) (RC=-1) - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Arithmetic overflow error converting expression to data type int.

Error : 8115 (00000) (RC=-1) - ( From tMSSQLConnection::GetQueryFile )

Thread ID [419600] User [rafael.antunes] IO [2534] Tables [44] MaxTables [46] Comment [] SP [ ] Traced [No] SQLReplay [No] InTran [No] DBEnv [MSSQL/PRODUCAO_RAG] DBThread [(SPID 51,53)] Started [16/04/2025 22:06:41] IP [10.95.16.63:13501] IDLE [ ] InTransact [ ] Memory [0] Running [ROP_QUERY for 0 s.] RCV [75256] SND [221641] TCBuild [20240224-20241002] TCVersion [24.1.0.0] ARCH [64] OS [LINUX] BUILD [RELEASE]

SELECT (sum(size) 8) SIZEDB FROM sys.database_files*


03. SOLUÇÃO

A query foi ajustada para converter size para BIGINT, evitando erro de overflow em bancos com arquivos muito grandes.

04. DEMAIS INFORMAÇÕES

Não se aplica

05. ASSUNTOS RELACIONADOS

        Não se aplica