| От | Boszormenyi Zoltan |
|---|---|
| Тема | Re: SQLDA fix for ECPG |
| Дата | |
| Msg-id | 4EC0CC06.30506@cybertec.at обсуждение исходный текст |
| Ответ на | Re: SQLDA fix for ECPG (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: SQLDA fix for ECPG
|
| Список | pgsql-hackers |
2011-11-13 17:27 keltezéssel, Tom Lane írta: > Boszormenyi Zoltan <zb@cybertec.at> writes: >> I had a report about ECPG code crashing which involved >> a query using a date field. Attached is a one liner fix to make >> the date type's offset computed consistently across >> sqlda_common_total_size(), sqlda_compat_total_size() and >> sqlda_native_total_size(). > Is this really the only issue there? I notice discrepancies among those > three routines for some other types too, notably ECPGt_timestamp and > ECPGt_interval. > > regards, tom lane Yes, you are right. For timestamp and interval, the safe alignment is int64. Patch is attached. Best regards, Zoltán Böszörményi -- ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH Gröhrmühlgasse 26 A-2700 Wiener Neustadt, Austria Web: http://www.postgresql-support.de http://www.postgresql.at/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера