Bug #14013 Updated: ocibindbyname strips trailing spaces
| From: | az at i7 dot com dot au | Date: | Sun, 11 Nov 2001 11:49:19 +0000 |
| Subject: | Bug #14013 Updated: ocibindbyname strips trailing spaces | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70096@lists.php.net to get a copy of this message | ||
ID: 14013
User updated by: az@i7.com.au
Reported By: az@i7.com.au
Status: Open
Bug Type: OCI8 related
Operating System: Linux 2.2, Solaris 2.6
PHP Version: 4.0.6
New Comment:
Erm, yeah, that's supposed to be '$id = 666;'.
Previous Comments:
------------------------------------------------------------------------
[2001-11-11 03:28:34] az@i7.com.au
When inserting text using named binds, PHP will strip trailing spaces. The same query on the same
database using the same Oracle client libraries. (All Oracle 8.1.6)
$db = ocilogon("u", "p", "sid");
$st = ociparse($db, "insert into test values (:id, :text)");
ocibindbyname($st, ":text", &$text, 2000);
ocibindbyname($st, ":id", &$id, 22);
$text = " this line has spaces ";
$node_id = 666;
ociexecute($st);
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14013&edit=1