We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c886adb commit 6ade313Copy full SHA for 6ade313
1 file changed
src/Rezoom.SQL.Compiler/TSQL.Statement.fs
@@ -233,12 +233,12 @@ type private TSQLStatement(indexer : IParameterIndexer) as this =
233
yield ws
234
yield! this.Expr.TypeName(typeName)
235
match collation with
236
- | None -> ()
237
- | Some collation ->
+ | Some collation when typeName.SupportsCollation ->
238
239
yield text "COLLATE"
240
241
yield this.Expr.CollationName(collation)
+ | _ -> ()
242
243
if nullable then
244
yield text "NULL"
0 commit comments