Skip to content
Snippets Groups Projects
Commit c1f17b8a authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Kirill Yukhin
Browse files

sql: store CHAR|VARCHAR len as integer, not type_def

Length is just an integer, part of a type, not a
whole type.
parent cb6ce0c3
No related branches found
No related tags found
No related merge requests found
......@@ -1485,13 +1485,13 @@ typedef(A) ::= DATE . { A.type = AFFINITY_REAL; }
typedef(A) ::= TIME . { A.type = AFFINITY_REAL; }
typedef(A) ::= DATETIME . { A.type = AFFINITY_REAL; }
%type char_len_typedef {struct type_def}
typedef(A) ::= CHAR|VARCHAR char_len_typedef(B) . {
%type char_len {int}
typedef(A) ::= CHAR|VARCHAR char_len(B) . {
A.type = AFFINITY_TEXT;
(void) B;
}
char_len_typedef(A) ::= LP INTEGER(B) RP . {
char_len(A) ::= LP INTEGER(B) RP . {
(void) A;
(void) B;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment