Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Artem Chuprina                       2:5020/400     22 Feb 2002  17:43:50
 To : "Sergey Yudin"
 Subject : Re: DBD Oracle not all variables bound
 -------------------------------------------------------------------------------- 
 
 Здравствуй, Sergey Yudin.
 
 SY> Объясните плиз, почему первая часть кода срабатывает, а во вторая вылетает с
 SY> ошибкой  "DBD::Oracle::db prepare failed: ORA-01008: not all variables
 SY> bound"
 
 SY> =========Beginning of the citation==============
 SY>   $sqlORA = q{ insert into TESTAB values( ? ) };
 SY>   $sthORA = $dbhORA->prepare ( $sqlORA );
 SY>   $sthORA->bind_param( 1, "TEST_STRING" );
 SY>   $sthORA->execute;
 SY>   $sthORA->finish;
 
 SY>   $sqlORA = q{ select F1 from TESTAB where F1 = ? };
 SY>   $sthORA = $dbhORA->prepare ( $sqlORA );
 SY>   $sthORA->bind_param( 1, 'TEST_STRING' );
 SY>   $sthORA->execute;
 SY>   $sthORA->finish;
 
 SY> =========The end of the citation================
 
 С виду вроде все правильно. Попроверяй возвращаемые значения от prepare и
 bind_param.
 
 -- 
 Artem Chuprina
 Communiware.net
 RFC2822: <ran@ran.pp.ru>, FIDO: 2:5020/358.49, ICQ: 13038757
 --- ifmail v.2.15dev5
  * Origin: Leninsky 45 home network (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 DBD Oracle not all variables bound   Sergey Yudin   22 Feb 2002 07:11:18 
 Re: DBD Oracle not all variables bound   Artem Chuprina   22 Feb 2002 17:43:50 
Архивное /ru.perl/6359ed49cb7a.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional