Skip to content

Commit 16d85e5

Browse files
committed
Fixed a bug that was causing collation assigned to column not to be
reflected in SQL and XML codes (isse ##2028) Fixed a bug that was causing collations to be saved always as deterministic even the user unchecked the option in editing form (issue #2029)
1 parent 09785f6 commit 16d85e5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

assets/schemas/sql/column.sch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
{name} $sp {type}
1818

19+
%if {collation} %then
20+
[ COLLATE ] {collation}
21+
%end
22+
1923
%if {not-null} %then
2024
[ NOT NULL]
2125
%end

assets/schemas/xml/collation.sch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
%if {lc-ctype} %then [ lc-ctype=] "{lc-ctype}" %end
1717
%if {lc-ctype-mod} %then [ lc-ctype-mod=] "{lc-ctype-mod}" %end
1818
%if {provider} %then [ provider=] "{provider}" %end
19-
%if {deterministic} %then [ deterministic=] "true" %end
19+
20+
[ deterministic=] "{deterministic}"
21+
2022
%if {sql-disabled} %then [ sql-disabled=] "true" %end
2123

2224
> $br

assets/schemas/xml/column.sch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ $tb [<column name=] "&{name}"
4747

4848
$tb {type}
4949

50+
%if {collation} %then $tb {collation} %end
51+
5052
%if {comment} %then $tb {comment} %end
5153

5254
$tb </column> $br

0 commit comments

Comments
 (0)