pl/python, plpy and nrows()

Поиск
Список
Период
Сортировка
От Gerhard Pfeiffer
Тема pl/python, plpy and nrows()
Дата
Msg-id Pine.GSO.4.05.10110222229170.18428-100000@sun.bnbt.de
обсуждение исходный текст
Список pgsql-general
Hallo,

I do
    res = plpy.execute("select * from koordinaten")
                    
    print("res: "+repr(res))
                    
    print("res.nrows(): "+repr(res.nrows()))

and on the stdout of the postmaster-process I get:
res: <PLyResult object at 0x8767350>
ERROR:  plpython: Call of function `__plpython_procedure_sms_46221'
failed.
exceptions.SystemError: error return without exception set

It seems, that it just stops execution, when I call nrows().
What can I do about it?


Ciao,
  Gerhard


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

Предыдущее
От: huongch@bigfoot.com (Flancer)
Дата:
Сообщение: Re: To Postgres Devs : Wouldn't changing the select limit
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Getting OID after Insert