|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-04 16:20 UTC] daniel at bitarts dot com
[2005-07-04 22:24 UTC] tony2001@php.net
[2005-07-05 11:23 UTC] daniel at bitarts dot com
[2005-07-05 11:35 UTC] tony2001@php.net
[2005-07-05 16:53 UTC] daniel at bitarts dot com
[2005-09-08 11:52 UTC] tony2001@php.net
[2005-09-16 01:00 UTC] php-bugs at lists dot php dot net
[2008-03-16 18:12 UTC] phpnet at rosenthaltechnologies dot com
[2008-06-03 10:57 UTC] ait_ajkdak at yahoo dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 03:00:01 2025 UTC |
Description: ------------ Trying to insert data into an NCLOB field. I can do this by using a TRANSLATE in my sql, and binding variable with the OCIBindByName functions. However, when I pass a certain amount of characters, the update fails with this (incorrect) error: Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-12703: this character set conversion is not supported That amount of characters seems to be 2000. In the code below, if you change this line $data = str_pad($data, 2001, "a"); to $data = str_pad($data, 2000, "a"); It works fine. It's only when you try to insert more than 2000 characters you get this odd behaviour. Thank you. Daniel Reproduce code: --------------- $data = str_pad($data, 2001, "a"); $lob = OCINewDescriptor($conn, OCI_D_LOB); $stmt = OCIParse($conn,"UPDATE TEST SET NCLOB_TEST = TRANSLATE(:NCLOB_TEST USING NCHAR_CS) WHERE ID='1'"); OCIBindByName($stmt, ':NCLOB_TEST', &$lob, -1, OCI_B_CLOB); $lob->WriteTemporary($data); OCIExecute($stmt, OCI_DEFAULT); $lob->close(); $lob->free(); OCICommit($conn); Expected result: ---------------- The NCLOB data field fills with 2001 "a" characters Actual result: -------------- error message: Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-12703: this character set conversion is not supported Nothing added to database.