non blcoking behaviour

Поиск
Список
Период
Сортировка
От Erik Hofman
Тема non blcoking behaviour
Дата
Msg-id 3A966C1D.86415240@ehofman.com
обсуждение исходный текст
Ответы Re: non blcoking behaviour  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Erik Hofman
Your email address      : erik@ehofman.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)         : SGI O2 / Mips RM5200

  Operating System (example: Linux 2.0.26 ELF)  :Irix 6.5.9

  PostgreSQL version (example: PostgreSQL-7.0):   PostgreSQL-7.0.3

  Compiler used (example:  gcc 2.8.0)           : MipsPro C 7.3


Please enter a FULL description of your problem:
------------------------------------------------

I'm programming PostgreSQL using the non blocking function right now,
but i had a real struggle with it :(

The PQstatus returns CONNECTION_MADE, but PQsendQuery only checks for
CONNECTION_OK.
So PQsendQuery doesn't send the query, while i think that after
CONNECTION_MADE the query could be sent also.



Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------





If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Probably adding CONNECTION_MADE to PQsendQuery

Erik

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

Предыдущее
От: Rainer Mager
Дата:
Сообщение: JDBC bug in 7.1b4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Date calculation produces wrong output with 7.02