OLD | NEW |
1 # 2014-07-23 | 1 # 2014-07-23 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } {integer 1234 real 4567.0 # text 0x1234 text 0x4567 #} | 102 } {integer 1234 real 4567.0 # text 0x1234 text 0x4567 #} |
103 do_execsql_test hexlit-301 { | 103 do_execsql_test hexlit-301 { |
104 SELECT CAST('0x1234' AS INTEGER); | 104 SELECT CAST('0x1234' AS INTEGER); |
105 } {0} | 105 } {0} |
106 | 106 |
107 # Oversized hex literals are rejected | 107 # Oversized hex literals are rejected |
108 # | 108 # |
109 do_catchsql_test hexlist-400 { | 109 do_catchsql_test hexlist-400 { |
110 SELECT 0x10000000000000000; | 110 SELECT 0x10000000000000000; |
111 } {1 {hex literal too big: 0x10000000000000000}} | 111 } {1 {hex literal too big: 0x10000000000000000}} |
| 112 do_catchsql_test hexlist-401 { |
| 113 SELECT DISTINCT 0x10000000000000000; |
| 114 } {1 {hex literal too big: 0x10000000000000000}} |
| 115 do_catchsql_test hexlist-410 { |
| 116 DROP TABLE IF EXISTS t1; |
| 117 CREATE TABLE t1(x); |
| 118 INSERT INTO t1 VALUES(1+0x10000000000000000); |
| 119 } {1 {hex literal too big: 0x10000000000000000}} |
112 | 120 |
113 | 121 |
114 finish_test | 122 finish_test |
OLD | NEW |