Skip to content

Commit 17b4e54

Browse files
JaBistDuNarrischJaBistDuNarrisch
authored andcommitted
Escape Oracle strings
1 parent e0f686c commit 17b4e54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Migrator/Providers/Impl/Oracle/OracleDialect.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public override string Default(object defaultValue)
166166
}
167167
else if (defaultValue is string stringValue)
168168
{
169+
stringValue = stringValue.Replace("'", "''");
169170
return $"DEFAULT '{stringValue}'";
170171
}
171172
else if (defaultValue is byte[] byteArray)

0 commit comments

Comments
 (0)