Bug #14013: ocibindbyname strips trailing spaces
| From: | az at i7 dot com dot au | Date: | Sun, 11 Nov 2001 08:28:34 +0000 |
| Subject: | Bug #14013: ocibindbyname strips trailing spaces | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70069@lists.php.net to get a copy of this message | ||
From: az@i7.com.au
Operating system: Linux 2.2, Solaris 2.6
PHP version: 4.0.6
PHP Bug Type: OCI8 related
Bug description: ocibindbyname strips trailing spaces
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 bug report at: http://bugs.php.net/?id=14013&edit=1