This project has moved. For the latest updates, please go here.
0

Closed

Strange casting rules

description

SELECT (CAST(e.EmployeeID AS byte) * CAST(3 AS byte)).GetType() AS MyType
FROM Employees e

The expression is evaluated as:
| (CAST(CAST(e.EmployeeID AS BYTE) AS INT64) * 3).GetType()
Strange casting rules...
Closed Oct 31, 2014 at 6:32 AM by terrajobst

comments