You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> sqlcmd -S 192.168.178.58,1433 -U jdbc_user -P 12345678 -Q "select case when col1 < 0 then cast(1 as decimal(3, 2)) else col1 end from tab1"
col1
-----
Sqlcmd: Error: Internal error at ReadAndHandleColumnData (Reason: Error reading column data).
With Go sqlcmd:
> sqlcmd -S 127.0.0.1,1433 -U jdbc_user -P 12345678 -Q "select case when col1 < 0 then cast(1 as decimal(3, 2)) else col1 end from tab1"
runtime error: slice bounds out of range [:170] with capacity 17
AFAIU there is no actual arithmetic overflow here, it is the current type resolution logic for CASE expressions is not compatible with the precision handling logic in TDS response processing.
Version
BABEL_4_X_DEV (Default)
Extension
babelfishpg_tds
Which flavor of Linux are you using when you see the bug?
What happened?
With a table like this:
The following query causes an error in TdsSendTypeNumeric:
This causes TDS clients to hang like this:
With ODBC
sqlcmd
:With Go
sqlcmd
:AFAIU there is no actual arithmetic overflow here, it is the current type resolution logic for
CASE
expressions is not compatible with the precision handling logic in TDS response processing.Version
BABEL_4_X_DEV (Default)
Extension
babelfishpg_tds
Which flavor of Linux are you using when you see the bug?
Fedora
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: