diff --git a/test/JDBC/expected/BABEL-4214-vu-verify.out b/test/JDBC/expected/BABEL-4214-vu-verify.out index 723699b5688..3f2f1977a90 100644 --- a/test/JDBC/expected/BABEL-4214-vu-verify.out +++ b/test/JDBC/expected/BABEL-4214-vu-verify.out @@ -23,27 +23,27 @@ bit ~~END~~ -SELECT FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)); +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT); GO ~~START~~ float -9.0 +9.458912037037036 ~~END~~ -SELECT FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)) +.999999; +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT) +.999999; GO ~~START~~ float -9.999999 +10.458911037037037 ~~END~~ -SELECT CAST(FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)) AS DATETIME); +SELECT CAST(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT) AS DATETIME); GO ~~START~~ datetime -1900-01-10 00:00:00.0 +1900-01-10 11:00:50.0 ~~END~~ @@ -403,6 +403,38 @@ int ~~END~~ +SELECT CONVERT(BIT, ISNULL(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME), 0)); +GO +~~START~~ +bit +1 +~~END~~ + + +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT); +GO +~~START~~ +float +9.459027777777777 +~~END~~ + + +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT) +.999999; +GO +~~START~~ +float +10.459026777777778 +~~END~~ + + +SELECT CAST(CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT) AS SMALLDATETIME); +GO +~~START~~ +smalldatetime +1900-01-10 11:01:00.0 +~~END~~ + + SELECT CAST(CAST('1900-01-10 12:56:50.675' AS SMALLDATETIME) AS BIT); GO ~~START~~ diff --git a/test/JDBC/input/BABEL-4214-vu-verify.sql b/test/JDBC/input/BABEL-4214-vu-verify.sql index 9b238718832..398f7056a6f 100644 --- a/test/JDBC/input/BABEL-4214-vu-verify.sql +++ b/test/JDBC/input/BABEL-4214-vu-verify.sql @@ -8,13 +8,13 @@ GO SELECT CONVERT(BIT, ISNULL(CAST('1900-01-10 11:00:50.675' AS DATETIME), 0)); GO -SELECT FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)); +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT); GO -SELECT FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)) +.999999; +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT) +.999999; GO -SELECT CAST(FLOOR(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT)) AS DATETIME); +SELECT CAST(CAST(CAST('1900-01-10 11:00:50.675' AS DATETIME) AS FLOAT) AS DATETIME); GO SELECT CAST(CAST('1900-01-10 12:56:50.675' AS DATETIME) AS BIT); @@ -152,6 +152,18 @@ GO SELECT babel_4214_smalldatetime_to_int_function(); GO +SELECT CONVERT(BIT, ISNULL(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME), 0)); +GO + +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT); +GO + +SELECT CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT) +.999999; +GO + +SELECT CAST(CAST(CAST('1900-01-10 11:00:50.675' AS SMALLDATETIME) AS FLOAT) AS SMALLDATETIME); +GO + SELECT CAST(CAST('1900-01-10 12:56:50.675' AS SMALLDATETIME) AS BIT); GO