Skip to content

Commit

Permalink
CustomType must set as string (chucknorris#37)
Browse files Browse the repository at this point in the history
Issue chucknorris#37 was not completely fixed. The customtype must be set
with a stringvalue for the driver to see the change
  • Loading branch information
LodewijkSioen committed Sep 10, 2012
1 parent fb58778 commit 2b7dbd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public ScriptsRunErrorMapping()
Map(x => x.repository_path);
Map(x => x.version).Length(50);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomSqlType("Clob").CustomType<StringClobSqlType>();
Map(x => x.erroneous_part_of_script).CustomSqlType("Clob").CustomType<StringClobSqlType>();
Map(x => x.error_message).CustomSqlType("Clob").CustomType<StringClobSqlType>();
Map(x => x.text_of_script).CustomSqlType("Clob").CustomType("StringClob");
Map(x => x.erroneous_part_of_script).CustomSqlType("Clob").CustomType("StringClob");
Map(x => x.error_message).CustomSqlType("Clob").CustomType("StringClob");

//audit
Map(x => x.entry_date);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Sequence(ApplicationParameters.CurrentMappings.roundhouse_schema_name + "_" + ApplicationParameters.CurrentMappings.scripts_run_table_name + "id").UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomSqlType("Clob").CustomType<StringClobSqlType>();
Map(x => x.text_of_script).CustomSqlType("Clob").CustomType("StringClob");
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

Expand Down

0 comments on commit 2b7dbd1

Please sign in to comment.