views:

33

answers:

0

I can't understand why but there seems to be a different behavior with my varchar parameters according to whether I'm in a transaction or not.

I want to pass an OracleParameter, type VARCHAR, containing a single quote, such as:

Dante's Lament

When I'm NOT in a transaction, the string is passed correctly.

When I'm in a transaction, everything after the single quote is cut off. The data saved is: Dante

I tried doubling the single quote (Dante''s Lament) but got the same result.

Any ideas?