Quote in the standard string column in the WriteDataType method (SqlServer)

Jul 3 at 2:56 PM
Edited Jul 3 at 3:01 PM
Hi.

I have a problem with string columns with default value. The library does this:
CREATE TABLE [dbo].[test_table]
(
  [id] INT, 
  [host_nome] VARCHAR (255)  NOT NULL DEFAULT '(host_name())',
  [string_column] VARCHAR (100)  NOT NULL DEFAULT '('value')'
);
instead of this:
CREATE TABLE [dbo].[test_table]
(
  [id] INT, 
  [host_nome] VARCHAR (255)  NOT NULL DEFAULT '(host_name())',
  [string_column] VARCHAR (100)  NOT NULL DEFAULT '(''value'')'
);
I guess the problem is on method WriteDataType in a class TableGenerator.cs (Sql Server) ...
                //strings should already have the single quotes in place
                if (!string.IsNullOrEmpty(value))
                    defaultValue = "DEFAULT " + value;
Can someone help me?