| От | Mike Beachy |
|---|---|
| Тема | Re: &main::execute undefined? |
| Дата | |
| Msg-id | 20021121192034.GA1207@marketdude.com обсуждение исходный текст |
| Ответ на | &main::execute undefined? (Andrew Magnus <xanadian99@yahoo.com>) |
| Список | pgsql-general |
On Thu, Nov 21, 2002 at 10:46:09AM -0800, Andrew Magnus wrote: > Thanks, but it still doesn't work. :-( > > For everyone else, the error I'm getting is: > > Undefined subroutine &main::execute called at ./test.pl line 10. > > where line 10 is: > > $statementH = execute() || warn $statementH->errstr ; You need to read the documentation for DBI. What Oliver's terse example was saying is that you are using the wrong syntax. execute() is a statement handle method, not a method for creating a statement handle. Read the docs - perldoc DBI mike > Oliver Elphick <olly@lfix.co.uk> wrote: > $statementH->execute() || warn $statementH->errstr ; > $relname = $statementH->fetchrow_array(); > $statementH->finish();
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера