Skip to content

rel.String should be NVARCHAR #6

@billgraziano

Description

@billgraziano

Disclaimer: I'm just reviewing the code while deciding whether to use or not. I haven't used this for real yet.

I believe a GO string (Unicode) best matches to NVARCHAR instead of VARCHAR. That will support the full Unicode set. At least that's what I've done in my code and it's worked well.

mssql/mssql.go

Lines 137 to 142 in e7d7d12

case rel.String:
typ = "VARCHAR"
m = column.Limit
if m == 0 {
m = 255
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions