not permanent insert into stud values('myname')

Поиск
Список
Период
Сортировка
От rony khoury
Тема not permanent insert into stud values('myname')
Дата
Msg-id 35BECC00.1059EB7@cyberia.net.lb
обсуждение исходный текст
Список pgsql-interfaces
 

Hello ,

following is a part of my code , can any body tell me why it works fine ,
but 'myname' does not remain permanent in the table although I'm loging in as postgres
and see 'myname' in the result when I run the program ?

thanks ,
Rony .

--------------------- C code -------------------
res = PQexec(conn,"insert into stud values('myname')");
PQclear(res);
res = PQexec(conn,"select * from stud");
 
for (i=0;i<PQntuples(res);i++) {
  printf("\n answer is %s",PQgetvalue(res,i,0));

---------------------- output -----------------------
#a.out
answer is rony
answer is myname
#
----------------------------------------------------------
 

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Coping with backend crash in libpq
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [INTERFACES] not permanent insert into stud values('myname')