[ODAC 5.70.0.29 CLR]Error ORA-01406: fetched column value was truncated
Posted: Mon 13 Mar 2006 15:09
Hi everyone,
I have a problem and I am seeking some help.
I'm using Odac with Oracle 10g 10.2.0.2.0(client and Database) and I get an error in a certain situation.
I get the following error : ORA-01406: fetched column value was truncated
Steps to error :
1. Have Oracle DB 10g 10.2.0.2.0 with AL32UTF8 charset
2. Create table
3. Insert fields
4. Now test this table with the Odac Smart Demo .Net version.
Use these options :
FetchAll := true;
OraSession.Option.Useunicode := true;
This Sql Command :
When I click on "Open", I get the error described above. From what I can make out, it seems it is the TEST_FETCH_ID 4 which generates the error.
Can someone please help ?
Thanks
I have a problem and I am seeking some help.
I'm using Odac with Oracle 10g 10.2.0.2.0(client and Database) and I get an error in a certain situation.
I get the following error : ORA-01406: fetched column value was truncated
Steps to error :
1. Have Oracle DB 10g 10.2.0.2.0 with AL32UTF8 charset
2. Create table
Code: Select all
CREATE TABLE TEST_FETCH
(
TEST_FETCH_ID NUMBER,
TEST_DESCR VARCHAR2(10 CHAR) NOT NULL
)
Code: Select all
INSERT INTO TEST_FETCH ( TEST_FETCH_ID, TEST_DESCR ) VALUES (
1, 'SAMPLE');
INSERT INTO TEST_FETCH ( TEST_FETCH_ID, TEST_DESCR ) VALUES (
2, 'TEST');
INSERT INTO TEST_FETCH ( TEST_FETCH_ID, TEST_DESCR ) VALUES (
3, 'USER 1');
INSERT INTO TEST_FETCH ( TEST_FETCH_ID, TEST_DESCR ) VALUES (
4, '123456789é');
COMMIT;
Use these options :
FetchAll := true;
OraSession.Option.Useunicode := true;
This Sql Command :
Code: Select all
SELECT * FROM TEST_FETCH
ORDER BY TEST_FETCH_ID
Can someone please help ?
Thanks