Doing a \set through perl DBI ?

Поиск
Список
Период
Сортировка
От David Gauthier
Тема Doing a \set through perl DBI ?
Дата
Msg-id CAMBRECBL6N6Mrt12R1sJfLbG=B4igQ+Pv7KdLwRbNL5Omx9ejg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Doing a \set through perl DBI ?
Re: Doing a \set through perl DBI ?
Список pgsql-general
Hi:

Is there a way to do the equivalent of a "\set foo 1" through perl dbi ?
I tried... 
    $dbh->do("\\set foo 1");
and got a syntax error

Of course, I'd also have to be able to access the value of foo once its set.   I'm guessing the usual way ??? (select :foo)


Thanks for any help !

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Code of Conduct plan
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Doing a \set through perl DBI ?