Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Preserve SQL Server bigint IRR exact decimal semantics in live engine regression, avoiding unsafe numeric coercion
davoodmehraban89 committed
Oct 26, 2026 at 08:20 UTC
3c9f890e97afaae5c71071af4cfd85a3a9eb45e7
1 file changed
+4
-1
.github/workflows/v7-patched-msal-real-sqlserver-lab-once.yml
+4
-1
@@ -77,7 +77,10 @@ jobs:
77
const rows=(await pool.request().query('SELECT Row_ID,Client_Reference,Amount_IRR FROM dbo.vw_ReadOnlyTransfers')).recordset;
78
assert.equal(rows.length,1);
79
assert.equal(rows[0].Client_Reference,'CI-SYNTHETIC-ONLY');
80
- assert.equal(rows[0].Amount_IRR,1250000);
80
+ // SQL BIGINT is intentionally preserved as a decimal string
81
+ // by mssql to avoid loss of precision above Number.MAX_SAFE_INTEGER.
82
+ assert.equal(String(rows[0].Amount_IRR),'1250000');
83
+ assert.match(String(rows[0].Amount_IRR),/^[0-9]+$/);
84
console.log('GATE_PASS_PATCHED_MSAL_MSSQL_DRIVER_REAL_VIEW_READ_INTEGER_IRR');
85
for(const statement of [
86
"UPDATE dbo.SyntheticTransfers SET Amount_IRR=1 WHERE Row_ID=1",