note 89318 added to book.pdo
| From: | marco dot we at gmx dot de | Date: | Tue, 03 Mar 2009 14:59:58 +0000 |
| Subject: | note 89318 added to book.pdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151392@lists.php.net to get a copy of this message | ||
Hello,
i'm trying to insert a text from a file into a informix database.
When im execute
$stmt = $db->prepare( 'INSERT INTO meldung ( problem_kurz, hist_aktion ) VALUES (
:problem_kurz, :hist_aktion )' );
$stmt->bindParam( 'problem_kurz', $sProblemtitel,PDO::PARAM_STR );
$fp = fopen("temp.tmp", 'rb');
$stmt->bindParam( 'hist_aktion', $fp, PDO::PARAM_LOB );
$stmt->execute();
i get the following error:
SQLSTATE[HY000]: General error: -608 [Informix][Informix ODBC Driver][Informix]Illegal attempt to
convert Text/Byte blob type. (SQLParamData[-608] at ..\pecl\pdo_informix\informix_statement.c:788)
What is the reason for this error?
----
Server IP: 212.124.37.9
Probable Submitter: 195.50.175.67
----
Manual Page -- http://www.php.net/manual/en/book.pdo.php
Edit -- https://master.php.net/note/edit/89318
Del: integrated -- https://master.php.net/note/delete/89318/integrated
Del: useless -- https://master.php.net/note/delete/89318/useless
Del: bad code -- https://master.php.net/note/delete/89318/bad+code
Del: spam -- https://master.php.net/note/delete/89318/spam
Del: non-english -- https://master.php.net/note/delete/89318/non-english
Del: in docs -- https://master.php.net/note/delete/89318/in+docs
Del: other reasons-- https://master.php.net/note/delete/89318
Reject -- https://master.php.net/note/reject/89318
Search -- https://master.php.net/manage/user-notes.php