Skip to content

Commit 12d3564

Browse files
committed
Fix gh-728 Clarify FLOAT/DOUBLE/REAL SQL types status in 2.1 beta release
1 parent 73cc9dd commit 12d3564

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/2.1/book/sql.rst

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ marked "Okay" will probably be balanced by tests which are unfairly marked "Fail
2727
| E011-01 | INTEGER and SMALLINT | ``create table t (s1 int primary key);`` | Okay. |
2828
+------------+-----------------------------------------------+----------------------------------------------------------+---------------------------------------------------------+
2929
| E011-02 | REAL, DOUBLE PRECISION, and FLOAT data types | ``create table tr (s1 float primary key);`` | Okay. |
30+
| | | | |
31+
| | | | **Note:** Floating point SQL types are not planned to |
32+
| | | | be compatible between 2.1 and 2.2 releases. The reason |
33+
| | | | is that in 2.1 we set 'number' format for columns of |
34+
| | | | these types, but will restrict it to 'float32' and |
35+
| | | | 'float64' in 2.2. The format change requires data |
36+
| | | | migration and cannot be done automatically, because in |
37+
| | | | 2.1 we have no information to distinguish 'number' |
38+
| | | | columns (created from Lua) from FLOAT/DOUBLE/REAL ones |
39+
| | | | (created from SQL). |
3040
+------------+-----------------------------------------------+----------------------------------------------------------+---------------------------------------------------------+
3141
| E011-03 | DECIMAL and NUMERIC data types | ``create table td (s1 numeric primary key);`` | Fail, DECIMAL and NUMERIC data types are not supported |
3242
| | | | and a number containing post-decimal digits will be |
@@ -46,6 +56,7 @@ marked "Okay" will probably be balanced by tests which are unfairly marked "Fail
4656
+------------+-----------------------------------------------+----------------------------------------------------------+---------------------------------------------------------+
4757
| E021-02 | CHARACTER VARYING data type (including all | ``create table t45 (s1 varchar primary key);`` | Fail, only the spelling VARCHAR is allowed. |
4858
| | its spellings) | | |
59+
| | | | **Note:** VARCHAR(N) does not check the string length. |
4960
+------------+-----------------------------------------------+----------------------------------------------------------+---------------------------------------------------------+
5061
| E021-03 | Character literals | ``insert into t45 values ('');`` | Okay, and the bad practice of accepting ""'s for |
5162
| | | | character literals is avoided. |

0 commit comments

Comments
 (0)