Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML columns with SQL Server #12

Closed
uksus70 opened this issue Jul 30, 2010 · 1 comment
Closed

XML columns with SQL Server #12

uksus70 opened this issue Jul 30, 2010 · 1 comment

Comments

@uksus70
Copy link

uksus70 commented Jul 30, 2010

AsXml() gives me KeyNotFoundException in GeneratorBase.GetTypeMap on line 61

        if (size == 0)
            return ReplacePlaceholders(_templates[type][0], size, precision);

AsXml() generates column expression with size == 0.
Whereas SqlServer200Generator sets the following type map:

    public const int XmlCapacity = 1073741823;

        SetTypeMap(DbType.Xml, "XML", XmlCapacity);

That is why _templates[type] contains the only item with key == 1073741823, not 0.

@schambers
Copy link
Member

This issue has been resolved in the following commit: http://github.com/schambers/fluentmigrator/commit/dd25d611f66d9fd1ec30d21b7742ac7cfe9173f3

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants