note 89318 rejected from book.pdo by danbrown

From: Date: Tue, 03 Mar 2009 15:02:26 +0000
Subject: note 89318 rejected from book.pdo by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151393@lists.php.net to get a copy of this message
Note Submitter: marco dot we at gmx dot de ---- 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?

« previous php.notes (#151393) next »