|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17063 Can't able to insert long datatype into oracle8 database
Submitted: 2002-05-07 00:28 UTC Modified: 2003-07-04 02:04 UTC
Avg. Score:4.0 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: sureshkb at orillion dot com Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 4.1.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sureshkb at orillion dot com
New email:
PHP Version: OS:


 [2002-05-07 00:28 UTC] sureshkb at orillion dot com
I am trying to insert the long datatype into oracle8 database but it is throwing exception.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-07 00:38 UTC] sureshkb at orillion dot com
Here small change i am not able to insert the long string i.e more than 50k but i can able in insert 1k string.
 [2002-05-07 03:05 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

 [2002-05-07 04:38 UTC] sureshkb at orillion dot com
function gendbins1($dbn,$tbn,$cols,$vals){
  global $info;
  global $debug;
	$info['db']['proto'] = "TCP";
	$info['db']['ip'] = "";
	$info['db']['port'] = "1521";
	$info['db']['sid'] = "ovdb";
	$info['db']['user'] = "logdata";
	$info['db']['pass'] = "logdata";
	$info['db']['oraspecs']="(DESCRIPTION = (ADDRESS = (PROTOCOL = " . $info['db']['proto'] . ")(HOST = " . $info['db']['ip'] . ")(PORT = " . $info['db']['port'] . "))(CONNECT_DATA = (SID = " . $info['db']['sid'] . ")))";

  $c1 = ociplogon($info[$dbn]['user'], $info[$dbn]['pass'], $info[$dbn]['oraspecs']);
  $q1 = "INSERT INTO $tbn $cols values :valdef";
	echo"<P>Query toinsert user is - $q1";
  $s1 = ociparse($c1, $q1);
  ocibindbyname($s1, ":valdef", &$vals);
  if($debug){$result = ociexecute($s1);} else {$result = @ociexecute($s1);};
  echo "The result from ins ==== $result";


here the code i am using and $str is in "TempStr.php" file and i am able to inserting the small strings(Aprox 2k) and i could not able to insert the big string. My table have only one column and datatype is "long". My apache server and database are not in same mechine.  This is the information i am providing.
 [2003-01-29 08:26 UTC]
Moving this to OCI8, which is where OCIPLogon() belongs.
(this mess between the two Oracle extensions gotta end someday .... argh..)
 [2003-07-04 02:04 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 09:01:28 2024 UTC