ORA-32766 Error Code Description:



 Error ORA-32766
 Description instr with negative offset: use varchar semantics on LOBs
 Cause The current varchar behavior is different. e.g. instr(`abcd`, `cd`, -2, 1) returns 3, whereas instr(to_clob(`abcd`), `cd`, -2, 1) returns 0, (i.e. no match), because the reverse search starts from offset -2, which points to `c` and moving backward, i.e. `d` is ignored. This is symmetric to instr(`dcba`,`dc`,2,1), which returns 0.
 Action ORACLE uses the same varchar semantics on LOBs (instr). Using the same example, instr(to_clob(`abcd`), `cd`, -2, 1) will return 3 as in the varchar case.


0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
OraError.net © 2007 • Privacy PolicyTerms Of Use