String in Clob column is changed
Posted: Thu 07 Feb 2013 08:25
Hi there,
we're currently a very strange issue on some few machines. Unfortunatelly on one of our productive target systems. That's why we need help.
The target system has Windows 7 Enterprise x64 installed. It has a complete fresh setup with Devart DotConnect 7.2.104.0 and connects to a remote Oracle Database 11g Release 11.2.0.3.0 - 64bit.
We try to write a simple xml string into a column of type Clob through the Entity Framework. The string "leaves" our application as a valid UTF-8 string and "arrives" in the database as a modified string containing a "\0" after every character. So passing in something like "<LisSettings ..." results in "<\0L\0i\0s\0S\0e\0t\0t\0i\0n\0g\0s\0 ..."
Having those values in the database causes lots of problems in handling this string.
Unfortunatelly I won't be able to provide a sample project since we only have two systems where this problem occurs. I have documented as much as possible with screenshots, using DBMonitor to track what's going into the database. If you provide me an email address I will send those images to you.
So here's what we tried out and observed:
- The machine where this behavior occurs was setup 4 weeks ago and only Devart dotConnect 7.2.104 was installed ("only" stands for "no other versions of Devart DotConnect).
- After we uninstalled DotConnect and installed version 6.5.244 the problem was not reproducible anymore.
- But we need version 7.2.104 since we have some other issues otherwise.
- We tracked the application -> database activity with the dbMonitor and have taken screenshots of all important information.
- DbMonitor shows, that the "InValue" of the string parameter for the "Clob" column is valid (or at least looks valid) and the "OutValue" is invalid, containing "\0" after each character.
Is there a setting that we can change in order to make it work correctly? Do you have an idea what the problem could be caused by?
If you need any additional information, please let me know.
Andi
we're currently a very strange issue on some few machines. Unfortunatelly on one of our productive target systems. That's why we need help.
The target system has Windows 7 Enterprise x64 installed. It has a complete fresh setup with Devart DotConnect 7.2.104.0 and connects to a remote Oracle Database 11g Release 11.2.0.3.0 - 64bit.
We try to write a simple xml string into a column of type Clob through the Entity Framework. The string "leaves" our application as a valid UTF-8 string and "arrives" in the database as a modified string containing a "\0" after every character. So passing in something like "<LisSettings ..." results in "<\0L\0i\0s\0S\0e\0t\0t\0i\0n\0g\0s\0 ..."
Having those values in the database causes lots of problems in handling this string.
Unfortunatelly I won't be able to provide a sample project since we only have two systems where this problem occurs. I have documented as much as possible with screenshots, using DBMonitor to track what's going into the database. If you provide me an email address I will send those images to you.
So here's what we tried out and observed:
- The machine where this behavior occurs was setup 4 weeks ago and only Devart dotConnect 7.2.104 was installed ("only" stands for "no other versions of Devart DotConnect).
- After we uninstalled DotConnect and installed version 6.5.244 the problem was not reproducible anymore.
- But we need version 7.2.104 since we have some other issues otherwise.
- We tracked the application -> database activity with the dbMonitor and have taken screenshots of all important information.
- DbMonitor shows, that the "InValue" of the string parameter for the "Clob" column is valid (or at least looks valid) and the "OutValue" is invalid, containing "\0" after each character.
Is there a setting that we can change in order to make it work correctly? Do you have an idea what the problem could be caused by?
If you need any additional information, please let me know.
Andi