Skip to content

Commit 6ade313

Browse files
committed
Don't include collation when altering string -> int on TSQL.
1 parent c886adb commit 6ade313

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Rezoom.SQL.Compiler/TSQL.Statement.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ type private TSQLStatement(indexer : IParameterIndexer) as this =
233233
yield ws
234234
yield! this.Expr.TypeName(typeName)
235235
match collation with
236-
| None -> ()
237-
| Some collation ->
236+
| Some collation when typeName.SupportsCollation ->
238237
yield ws
239238
yield text "COLLATE"
240239
yield ws
241240
yield this.Expr.CollationName(collation)
241+
| _ -> ()
242242
yield ws
243243
if nullable then
244244
yield text "NULL"

0 commit comments

Comments
 (0)