Re: ECPG patch 4.1, out-of-scope cursor support in native mode
От | Boszormenyi Zoltan |
---|---|
Тема | Re: ECPG patch 4.1, out-of-scope cursor support in native mode |
Дата | |
Msg-id | 4B278961.90804@cybertec.at обсуждение исходный текст |
Ответ на | Re: ECPG patch 4, out-of-scope cursor support in Informix-mode (Boszormenyi Zoltan <zb@cybertec.at>) |
Ответы |
Re: ECPG patch N+1, fix auto-prepare
ECPG out-of-scope cursor support in native mode Re: ECPG patch 4.1, out-of-scope cursor support in native mode |
Список | pgsql-hackers |
Boszormenyi Zoltan írta: > New version: rebased to current CVS and > fix the rejects caused by the newer SQLDA > and DESCRIBE patches. Note that it's still > compat-mode only, I will send a modified patch > in the next email that is ECPG-wide, so it can be > decided if the feature is wanted in native mode or not. Attached. Changes against the compat-mode only patch are: - ECPG_informix_set_var() and ECPG_informix_get_var() were renamed to ECPGset_var() and ECPGget_var() and were moved into libecpg. The previous calls are kept in libecpg_compat.so as wrappers for compatibility reasons. - adjust_informix() was renamed as adjust_outofscope_cursor_vars() to indicate its real purpose. The comment at the beginning of the function is modified to explain why it's useful. The code produced by this is not too ugly this way in native mode, only some ECPGset_var() calls are added when the DECLARE are in the same function as OPEN/FETCH/CLOSE. Global variables used in DECLARE aren't transformed at all. -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil." (Matthew 5:37) - basics of digital technology. "May your kingdom come" - superficial description of plate tectonics ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH http://www.postgresql.at/
Вложения
В списке pgsql-hackers по дате отправления: