From 2b7dbd1150d9ca45e07ddefc0f6e82289ecb4c22 Mon Sep 17 00:00:00 2001 From: Lodewijk Sioen Date: Fri, 31 Aug 2012 13:34:11 +0200 Subject: [PATCH] CustomType must set as string (#37) Issue #37 was not completely fixed. The customtype must be set with a stringvalue for the driver to see the change --- .../orm/ScriptsRunErrorMapping.cs | 6 +++--- .../roundhouse.databases.oracle/orm/ScriptsRunMapping.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/product/roundhouse.databases.oracle/orm/ScriptsRunErrorMapping.cs b/product/roundhouse.databases.oracle/orm/ScriptsRunErrorMapping.cs index 987fc09a..680d3cb0 100644 --- a/product/roundhouse.databases.oracle/orm/ScriptsRunErrorMapping.cs +++ b/product/roundhouse.databases.oracle/orm/ScriptsRunErrorMapping.cs @@ -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(); - Map(x => x.erroneous_part_of_script).CustomSqlType("Clob").CustomType(); - Map(x => x.error_message).CustomSqlType("Clob").CustomType(); + 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); diff --git a/product/roundhouse.databases.oracle/orm/ScriptsRunMapping.cs b/product/roundhouse.databases.oracle/orm/ScriptsRunMapping.cs index b999a18e..83f1de54 100644 --- a/product/roundhouse.databases.oracle/orm/ScriptsRunMapping.cs +++ b/product/roundhouse.databases.oracle/orm/ScriptsRunMapping.cs @@ -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(); + Map(x => x.text_of_script).CustomSqlType("Clob").CustomType("StringClob"); Map(x => x.text_hash).Length(512); Map(x => x.one_time_script);